+ Reply to Thread
Results 1 to 4 of 4

How to add a Count and Clear to a UserForm button for my Macro after a set mount of time

  1. #1
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    110

    How to add a Count and Clear to a UserForm button for my Macro after a set mount of time

    Hi Experts,

    Sorry to ask for help again but I am having trouble figuring out how to have a counter on a button that calls a user form that users fill in data, that gets stored, and then I need it to clear that data, say in fifteen minutes, and make them re-enter. I have the User Form the clear code and everything else working. I am just not sure how to add a counter to say if the count is above zero start the counter and if it reaches the timer limit run the clear command and reset the counter to zero.

    What I am looking for:

    The code that will do the below, when the button is clicked

    Sets counter to 1 or more (may click button more than once, resets timer if possible, if not, no problem)
    When timer hits set time (say 15 minutes, runs clear command and sets counter back to zero, to start the process over again)

    Thanks,
    theglitch

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,309

    Re: How to add a Count and Clear to a UserForm button for my Macro after a set mount of ti

    see big yellow banner - upload your form.
    none of us want to spend time creating something that exists,
    help us to help you.
    torachan

  3. #3
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: How to add a Count and Clear to a UserForm button for my Macro after a set mount of ti

    Sorry, I just had surgery and I forgot to attach what I had already. It should be the SAP button that needs the counter and the other button has the clear assigned to it. Sorry for not following the rules. Thank you for looking at this so far and pointing that out. Thanks again.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-08-2012
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: How to add a Count and Clear to a UserForm button for my Macro after a set mount of ti

    Hi Experts,

    Just wondering if anybody thinks this is possible? I am still trying to figure it out but not having any luck. Thanks again for any help or for pointing me in the right direction.

    Thanks,
    theglitch

+ 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. Clear entry button in userform
    By RJ1969 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 10-02-2017, 12:50 AM
  2. [SOLVED] Userform clear button but not to clear all entries.
    By danbates in forum Excel General
    Replies: 5
    Last Post: 08-05-2017, 02:12 PM
  3. [SOLVED] Userform button action - clear,copy paste and print crashes. Please help with code
    By intex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-05-2014, 12:16 PM
  4. Need VBA/macro for Save & clear button
    By rajtar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2014, 07:34 AM
  5. [SOLVED] Command Button Clear Userform
    By esaban in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-27-2014, 01:50 PM
  6. [SOLVED] Excel vba userform- cancel button needs clear all fields
    By PANTECH in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2013, 02:51 PM
  7. Macro Button To Clear Certain Cells
    By TroyDurham in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-28-2009, 03:33 AM

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