+ Reply to Thread
Results 1 to 8 of 8

macro with ctrl button

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    4

    macro with ctrl button

    i am trying to create a macro which does this:

    Ctrl ; space Ctrl shift ; so that it inputs static Date and Time

    but it does not work and only puts in the date and time of when the macro was recorded

    Help please as it is driving me mad!

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: macro with ctrl button

    assuming you want it in the active cell
    Please Login or Register  to view this content.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    03-04-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: macro with ctrl button

    Hi there

    The problem with using =now() is it updates. So I need to use Ctrl ; then Ctrl shift ; so I get a static date and time which does not update . I think the problem is how to use the Ctrl button in the macro?
    Thanks

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: macro with ctrl button

    no it doesn't update. it's not putting the =now() formula in the cell. try it ;-)

  5. #5
    Registered User
    Join Date
    03-04-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: macro with ctrl button

    Hello
    I have tried again but it keeps updating. this is what is in the macro
    '---------

    Please Login or Register  to view this content.
    ---------
    Last edited by arlu1201; 03-05-2013 at 02:57 PM.

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: macro with ctrl button

    that is not what I posted-please use the code I gave you :-)

  7. #7
    Registered User
    Join Date
    03-04-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: macro with ctrl button

    All working now - thank u

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: macro with ctrl button

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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