+ Reply to Thread
Results 1 to 5 of 5

Countdown Timer

  1. #1
    Registered User
    Join Date
    08-12-2004
    Location
    Mendoza, Argentina
    MS-Off Ver
    Office Professional 2003
    Posts
    89

    Countdown Timer

    I have the following code for a countdown timer but I want to be able to put the start time in the code itself, or by referring to the start time in another cell.
    I have tried putting the start time in Cell A1 which works great - the time counts down in E1 where E1 =A1. However when the timer hits zero, the reference in E1 changes to the time 00:00:00 and the reference to A1 is disappears.

    Any help much appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Countdown Timer

    .
    If I correctly understand what you are saying ... you could place an IF statement after your MsgBox "Countdown complete."

    Please Login or Register  to view this content.
    Understand the above is pseudo code. It may need editing.

    Oftentimes, it helps to have your workbook attached to your request. Makes it easier to assist.

  3. #3
    Registered User
    Join Date
    08-12-2004
    Location
    Mendoza, Argentina
    MS-Off Ver
    Office Professional 2003
    Posts
    89

    Re: Countdown Timer

    Thanks, logit. Your advice was helpful and I did solve the problem in the end. However, I just cannot find a countdown timer that continues to run while the user types in answers to questions.

    Thanks, anyway

  4. #4
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Countdown Timer

    Quote Originally Posted by thadacto View Post
    However, I just cannot find a countdown timer that continues to run while the user types in answers to questions.
    That is correct based on how you approached the timer as you cannot change 2 cells at the same time manually. To do this you likely want to represent the timer within an object on the sheet like a shape or textbox. The object should be able to be updated while the object is ticking away.

    Generally speaking its also asking for trouble to try and have code run and user input happening at the exact same time. Depending on how much time the counter is counting down from may change how you handle this. I mean are we counting down from something like 5 seconds, 5 minutes or 5 hours?

    The smaller the period of time the trickier it will be to juggle between counter and user input. Longer periods might give you flexibility to do something like change the time every 30-60 seconds until you get to say the last 15 seconds and then do it second by second.

    I guess it would also be prudent if we knew the purpose of the timer. Until now I assumed it was for the users sake, however if its for you to be able to record how long the entire questionnaire takes or how long each question takes to answer there may be other approaches that can work how you need

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Countdown Timer

    .
    Here are three count down timers that continue to run while the user is entering data into the sheet. Although the time display 'stops' while the user
    has a cell active, as soon as the ENTER key is pressed, the timer displays the correct time that has transpired . Perhaps something here
    will be of use to you ...
    Attached Files Attached Files

+ 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. Countdown timer
    By Shamz41 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-11-2017, 08:17 AM
  2. [SOLVED] Countdown timer help
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-24-2016, 01:04 PM
  3. Countdown Timer
    By AMayland in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-10-2016, 03:45 AM
  4. Countdown timer
    By Trickypottermus in forum Excel General
    Replies: 3
    Last Post: 11-13-2013, 08:09 AM
  5. Timer Countdown
    By Chris Wareham in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2011, 12:38 AM
  6. countdown timer
    By pka in forum Excel General
    Replies: 0
    Last Post: 10-23-2011, 09:18 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