+ Reply to Thread
Results 1 to 3 of 3

Count number of Macro Runs

  1. #1
    Forum Contributor
    Join Date
    09-05-2013
    Location
    Malta
    MS-Off Ver
    Excel 2016
    Posts
    103

    Count number of Macro Runs

    Good evening Excel Gurus... weird request...

    Is there a way that a macro can count (keep record) (and display in msg box) the number of times it has been run?

    Sam

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    36,676

    Re: Count number of Macro Runs

    You could have a public variable that you increment. That's OK for a particular session. If you want to know how many times it has been run across multiple sessions, you'd need to store and increment the value somewhere, say in a hidden worksheet.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    36,676

    Re: Count number of Macro Runs

    Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Count number of runs above or below average
    By waxwing in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  2. [SOLVED] Count number of runs above or below average
    By waxwing in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  3. Count number of runs above or below average
    By waxwing in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  4. Count number of runs above or below average
    By Harlan Grove in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] Count number of runs above or below average
    By waxwing in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  6. Count number of runs above or below average
    By waxwing in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] Count number of runs above or below average
    By waxwing in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  8. Count number of runs above or below average
    By waxwing in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2005, 08:05 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