+ Reply to Thread
Results 1 to 3 of 3

Specific countdown timer

Hybrid View

ballan Specific countdown timer 09-22-2012, 08:03 PM
abousetta Re: Specific countdown timer 09-22-2012, 08:10 PM
ballan Re: Specific countdown timer 09-22-2012, 09:12 PM
  1. #1
    Registered User
    Join Date
    09-08-2012
    Location
    RTP, NC
    MS-Off Ver
    Excel 2010
    Posts
    14

    Specific countdown timer

    I can't make this work!
    I need to display a countdown timer in a cell on a spreadsheet. (Merged cells with K3 the top left, format mm:ss)
    The start time is loaded by entering minutes in cell O4 and seconds in cell P4, then RESET command button loads the value to the timer cell (K3).
    The timer will count down by seconds. The spreadsheet needs to be active while the countdown timer runs, and when it is stopped.
    I will use toggle switch named CLOCK to start and pause the countdown.
    If I enter 10 in O4 and 00 in P4 and click RESET, the timer should start counting down from 10:00 when CLOCK is clicked.
    At 6:33 if I click CLOCK again the timer should stop. When I click CLOCK again the timer should start counting down from 6:33.
    When the timer is stopped, I need to be able to correct the time using the RESET button.
    If the timer runs to 0:00 a sound event is called. I have the sound module (API) and
    will use sndPlaySound"C:\file.wav,1"
    Finally, I need to change the format and code to show tenths of a second when the timer value is less than 60 seconds.

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Specific countdown timer

    If you upload what you have done so far, someone may be able to assist you in completing this.

    abousetta
    Please consider:

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

  3. #3
    Registered User
    Join Date
    09-08-2012
    Location
    RTP, NC
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Specific countdown timer

    I really have nothing but my "English code" and a basic format to help think about it.

    Seems like I need a timer module that creates the one per second updates or 10 per second.
    Then call the timer using the toggle code.

    There is an xla file available here: http://www.tushar-mehta.com/excel/software/vba_timer/
    On the site he says - "The add-in exports a class, called clsTimer. The properties, methods,
    and events of the class make it very easy for the developer to add time-based features to
    her/his application.

    The Timer class uses the Windows APIs SetTimer and KillTimer to raise internal events, and has many other
    features that seem to be what I need, but his explanation is beyond my expertise. I am
    willing to pay this guy the $30 for the xla file, but I need to make sure it will work first.
    Last edited by ballan; 09-23-2012 at 06:07 PM.

+ 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