+ Reply to Thread
Results 1 to 7 of 7

Timer on userform - run in background if we close the userform

  1. #1
    Registered User
    Join Date
    11-15-2014
    Location
    pune
    MS-Off Ver
    2007
    Posts
    22

    Timer on userform - run in background if we close the userform

    Hi Experts,

    I am looking for timer on userform which keep run in background even userform closed. it needs to be run till we click on stop timer.
    please find the attached file that i got from our forum for timer. we have start and stop options in this form. I am expecting that if i started timer and closed the userform, timer needs to be run in background till i open it and click on stop.

    Please provide the modified coding to done this. thanks in advance.

    Regards,
    Naresh G
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Timer on userform - run in background if we close the userform

    Hi Naresh,

    Try the attached file which should do what you want. Please let me know if you need any additional help.

    ThisWorkbook Code:
    Please Login or Register  to view this content.

    UserForm Code:
    Please Login or Register  to view this content.

    Ordinary Module Code:
    Please Login or Register  to view this content.
    Lewis
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-15-2014
    Location
    pune
    MS-Off Ver
    2007
    Posts
    22

    Re: Timer on userform - run in background if we close the userform

    Excellent LJMetzger..

    Can we get this done even excel sheet closed? if the spreadsheet closed without stop the timer then the timer needs to be paused while closing and starts from paused time.

    I am sorry if i am expecting more.. but nothing is possible for experts like you

    Thanks alot

  4. #4
    Registered User
    Join Date
    11-15-2014
    Location
    pune
    MS-Off Ver
    2007
    Posts
    22

    Re: Timer on userform - run in background if we close the userform

    Hi,

    Can I have any suggestions on this. Please advise

    Thanks

  5. #5
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Timer on userform - run in background if we close the userform

    Hi,

    I apologize. I forgot that this thread was still open. I had to take a slightly different approach to the timers, since the previous code was good for 24 hours maximum. The current code is good as long as Excel gives the correct time. See the attached file.

    ThisWorkbook Code:
    Please Login or Register  to view this content.

    UserForm Code:
    Please Login or Register  to view this content.

    Ordinary Module Code:
    Please Login or Register  to view this content.
    Lewis
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-15-2014
    Location
    pune
    MS-Off Ver
    2007
    Posts
    22

    Re: Timer on userform - run in background if we close the userform

    Hi Lewis,

    Thank you so much. it's working great. Brilliant.

  7. #7
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Timer on userform - run in background if we close the userform

    It's always nice to have a satisfied customer.

+ 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] Userform Controls shortcut - close userform by escape key
    By ag273n in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-05-2014, 06:23 PM
  2. Close Userform from within child Userform
    By contaminated in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2014, 04:24 PM
  3. Opening workbook from userform keeping userform at background..
    By cooldude113322 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-05-2012, 12:14 PM
  4. How to Open 2nd workbook from userform, then close 2nd Userform
    By bigfoot007 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 02:03 PM
  5. [SOLVED] UserForm Question:Is it possible to save and close a file via a userform.
    By jer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2005, 08:06 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