+ Reply to Thread
Results 1 to 4 of 4

Add Timer to Code

  1. #1
    Registered User
    Join Date
    09-20-2009
    Location
    London, United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    7

    Add Timer to Code

    Hello Experts !

    I am executing this code:

    Please Login or Register  to view this content.
    How can I add timer to this code ? I searched a site and it showed a code, which has Start = Time after Application.ScreenUpdating = False
    and at the end, it has Next, then next line, MsgBox Timer - Start & "Seconds".

    I added this to my above code but didn't work ?

    Can an expert please show me how to add time code to above code ?

    Thanks

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Add Timer to Code

    try this
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    09-20-2009
    Location
    London, United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Add Timer to Code

    Hi John !

    Thanks for your kind reply.

    Its giving an error: Invalid outside procedure

    And I think its a time code. I saw this, which was at the end of the code:

    Please Login or Register  to view this content.
    This shows a message box, that how many seconds it took from execution to results of pressing the "run the macro".

    Do you any idea about this code ?

    Thanks for your help.

  4. #4
    Registered User
    Join Date
    11-25-2008
    Location
    Poland
    MS-Off Ver
    MSO 2K3, 2K10
    Posts
    84

    Re: Add Timer to Code

    For example:
    Please Login or Register  to view this content.
    Artik

+ 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