+ Reply to Thread
Results 1 to 5 of 5

Visual Basic : Using CTRL+t as a time stamp

  1. #1
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    140

    Visual Basic : Using CTRL+t as a time stamp

    Hello,

    I have worked with a tracker for many years. This tracker has a time stamp macro and the keyboard shortcut has always been 'ctrl+t'.
    If I open a version of the tracker that was last edited in Office 2010 it works fine but when using the version I have edited in Office 365, using 'ctrl+t' highlights an area rather than applying the time.


    The VB behind it is;
    Please Login or Register  to view this content.

    This is the "Timestamp" code;
    Please Login or Register  to view this content.
    I would like to know if there is anything I can do to continue using the 'ctrl+t' as the time stamp shortcut.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Visual Basic : Using CTRL+t as a time stamp

    Hi

    ctrl t is the shortcut code to select an area to create a table

    in a macro you can stop normal functionality by using
    Please Login or Register  to view this content.
    in your code.

    We use this in a Double Click or right click macro so it should work here.


    Try this:-
    remember to set the shortcut to t.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 02-05-2016 at 07:53 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    140

    Re: Visual Basic : Using CTRL+t as a time stamp

    Hello,

    Thanks for the information, apologies if this is a dumb question but the code you mention;
    Please Login or Register  to view this content.
    Where would I place that in my code stated above..?

    Thanks again.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Visual Basic : Using CTRL+t as a time stamp

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2016
    Posts
    140

    Re: Visual Basic : Using CTRL+t as a time stamp

    That is awesome, works a treat. Thank you :-)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Disabling Ctrl+y from deleting lines in Visual Basic editor?
    By Skywalker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2017, 11:31 AM
  2. Excel visual basic (ctrl+click) copying clicked cells to new excell file
    By 0MMIG0 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-10-2013, 06:17 AM
  3. [SOLVED] run-time error '13' type mismatch visual basic
    By Michell Feitosa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2012, 07:42 PM
  4. Replies: 6
    Last Post: 08-18-2010, 03:22 PM
  5. [SOLVED] Can I run Visual Basic procedure using Excel Visual Basic editor?
    By john.jacobs71 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-26-2005, 10:25 AM
  6. [SOLVED] Visual Basic macro run time error(13) type mismatch
    By Paul in forum Excel General
    Replies: 0
    Last Post: 10-25-2005, 03:05 AM
  7. Microsoft Visual Basic Run-time error '1004' No cells were found
    By Paul Riker in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-28-2005, 01:05 AM
  8. [SOLVED] Visual Basic run-time error when printing from web application...
    By GWS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2005, 01:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1