+ Reply to Thread
Results 1 to 2 of 2

Countdown timer help

  1. #1
    Registered User
    Join Date
    05-19-2009
    Location
    WA, USA
    MS-Off Ver
    Excel 2010 and Office 365
    Posts
    50

    Smile Countdown timer help

    Hello, all.

    I've got a co-worker who's retiring at the end of the month, and I wanted to put this on a spare laptop that's just sitting around so everyone can see the countdown.

    I found this VBA script for a countdown timer on YouTube:

    https://www.youtube.com/watch?v=sbJeGG_Xv8M

    I can get it to work with the basic examples the guy gives, but I need it to count down from 273 hours. When I put that in the cell A12 as 273:00:00 with the cell formatted as hh:mm:ss, when I press Enter it changes the text in the cell to "9:00:00 AM" and displays in the formula bar as "1/11/1900 9:00:00 AM". If I format it as [h]:mm:ss, when I press enter it stays as 273:00:00, but when I start the timer, it again displays in the formula bar as "1/11/1900 9:00:00 AM".

    Here's the code for the two command button's:

    Please Login or Register  to view this content.
    And here's the module code so no one has to replay the video over and over like I had to:

    Please Login or Register  to view this content.
    I'm really useless when it comes to VBA scripts, so if anyone can help figure this out, I'd really appreciate it.

    Thanks in advance. You all are the best.

  2. #2
    Registered User
    Join Date
    05-19-2009
    Location
    WA, USA
    MS-Off Ver
    Excel 2010 and Office 365
    Posts
    50

    Re: Countdown timer help

    I actually got this to work. Probably not the "proper way", but it's working nonetheless.

    After the countdown started, I just formatted the A12 cell to [h]" hrs", mm" min", ss" sec". Counting down as hoped for.

    If there's a better way, I'd love to hear it, so I won't mark this as solved just yet.

+ 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] hwnd timer pause VBA countdown timer
    By jaryszek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2019, 04:25 AM
  2. Countdown timer Working BUT starting the timer repeatedly SPEEDS UP TIMER!
    By Vinospam in forum Excel Programming / VBA / Macros
    Replies: 67
    Last Post: 03-30-2019, 06:42 PM
  3. [SOLVED] timer and countdown
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-20-2018, 01:12 AM
  4. Countdown timer
    By Trickypottermus in forum Excel General
    Replies: 3
    Last Post: 11-13-2013, 08:09 AM
  5. [SOLVED] Countdown timer
    By flyinghigher2011 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-10-2013, 03:08 PM
  6. timer to countdown
    By Burt_100 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-10-2013, 07:27 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