+ Reply to Thread
Results 1 to 2 of 2

Adding a count ticker to a pre-existing button

  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    asdasd
    MS-Off Ver
    Excel 2003
    Posts
    22

    Adding a count ticker to a pre-existing button

    I have a button that clears all my data. A macro.
    I am looking to have this button/macro also add a tally counter to another box, say (m2) every time it is pressed. I keep getting syntax errors.
    Any thoughts?
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-09-2011
    Location
    Germany
    MS-Off Ver
    Excel 2016
    Posts
    194

    Re: Adding a count ticker to a pre-existing button

    Hi tek0011,

    if you add:
    Sheet1.Range("m2") = Sheet1.Range("m2") + 1
    to your Macro as shown below, the macro will take the value from Cell M2, add 1 and save the "new" value back to Cell M2.
    Additionally I have removed all the "select" commands, as they should be avoided.

    The whole macro would need to look like this

    Please Login or Register  to view this content.
    Regards

    Theo
    __________________
    Please consider:

    Thanking those who helped you. Click the scales icon in the upper right corner of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ 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