+ Reply to Thread
Results 1 to 4 of 4

timer to see how long a macro runs to create it as a function instead

  1. #1
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    timer to see how long a macro runs to create it as a function instead

    Hi all,

    I have the below code to time a macro how long it runs. the thing is that I need to create new version that will be called as a function to check the time spent.
    when I run it now as a function, it will not work proper as it will just run first the function and then the rest of the macro, so, no time measured in how long the macro runs.
    But I'm lost in how to solve this.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Greetings.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: timer to see how long a macro runs to create it as a function instead

    One way

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Test in attached workbook with {CTRL} k

    TimeMacro.xlsm
    Last edited by kev_; 12-07-2017 at 08:14 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Austria
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: timer to see how long a macro runs to create it as a function instead

    Hi, It works really great, thanks a lot.

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: timer to see how long a macro runs to create it as a function instead

    Thanks for rep
    Please click ThreadTools at top of thread and mark thread SOLVED
    Thanks

+ 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. [SOLVED] Sheets not changing to Very hidden when timer runs out
    By Nitro2481 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2016, 11:28 AM
  2. Change color of button when timer runs
    By Artos90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2016, 02:28 AM
  3. How to create macro runs on a link that user inputs
    By linh sam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2015, 08:06 AM
  4. Replies: 1
    Last Post: 02-06-2014, 12:10 PM
  5. Replies: 2
    Last Post: 06-08-2012, 07:38 AM
  6. Show text message instead of egg timer while macro runs
    By CasualVisitor in forum Excel General
    Replies: 2
    Last Post: 09-25-2009, 02:39 PM
  7. [SOLVED] how to create a macro that runs other macro in the same workbook
    By VB Script for Excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2006, 11:55 PM

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