+ Reply to Thread
Results 1 to 2 of 2

counting the number of tym a macro has been run

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    Karnataka, India
    MS-Off Ver
    Excel 2007
    Posts
    48

    counting the number of tym a macro has been run

    i have created 8 buttons and assigned them to 8 different macros. it is necessary for me that i find out how many tyms each of this macro button has been pressed.
    and also can i tabulate that data(of how many tyms its been pressed) ??
    and can i refresh it on choice so that it starts counting form zero again wenever i want??

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: counting the number of tym a macro has been run

    You would have to setup the macro to store the value somewhere.

    Example:
    Please Login or Register  to view this content.
    Everytime you press the button the macro runs and then records a number in A1. Press it again and you have A1 + 1 which will be 2 since this is the second time the button has been pressed.

    When you want to start the count over again just change A1 to 0.
    HTH
    Regards, Jeff

+ 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