+ Reply to Thread
Results 1 to 2 of 2

Countdown timers.

Hybrid View

  1. #1
    Registered User
    Join Date
    08-26-2014
    Location
    london
    MS-Off Ver
    2010
    Posts
    1

    Countdown timers.

    Hi Everyone,

    I've joined this forum in the hopes that someone will be kind enough to create something for me as my knowledge of excel does not exceed much further than formulas.
    Essentially I need a list of countdowns for my store. The sheet will be for the tester, who gives testing times to people who wish to sell their gadgets and games consoles etc. What I need is a spreadsheet that has the following columns:

    A: Name of item
    B: Testing time (hh:mm:ss)
    C: A countdown, preferably turning red when the count drops below 5 mins
    D: A button to start the count once the item is given to the tester

    The list needs to be about 30 rows in length. I have managed to find formulas to create a single countdown but I cannot figure out the button part and cannot work out how to have multiple countdowns.

    Obviously columns C and D are what I am looking for help with.

    Any help or advice would be much appreciated, bearing in mind that I know little to nothing about macros etc.

    Thanks

    Dave

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,190

    Re: Countdown timers.

    add this macro code 1st.
    In developer mode, grab a button (not the Active X one) place on form, it will ask what macro, pick STARTTIMER
    F9 once the timer starts to refresh the times.

    Sub StartTimer()
    Dim h, n, s, vStart
    
    'h1 has the current time
    'h2 has the time we started
    
    'A has names
    'B has time in h:m:s
    'this will fill value:
    'C = end time
    'D = remain time   =C2-$H$1
    
    vStart = Range("h1").Value
    Range("h2").Value = vStart
    
    Range("A2").Select
    While ActiveCell.Value <> ""
       If ActiveCell.Offset(0, 1).Value <> "" Then
          h = Hour(ActiveCell.Offset(0, 1).Value)
          n = Minute(ActiveCell.Offset(0, 1).Value)
          s = Second(ActiveCell.Offset(0, 1).Value)
          vEnd = DateAdd("h", h, vStart)
          vEnd = DateAdd("n", n, vEnd)
          vEnd = DateAdd("s", s, vEnd)
          ActiveCell.Offset(0, 2).Value = vEnd
       End If
       
       ActiveCell.Offset(1, 0).Select  'next row
    Wend
    End Sub

+ 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. Best way to make multiple countdown timers
    By Dave_ross in forum Excel General
    Replies: 19
    Last Post: 02-04-2019, 05:06 PM
  2. [SOLVED] Problem adding more countdown timers
    By jdublya in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-10-2014, 11:56 AM
  3. Multiple Countdown timers.
    By dawidski in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2013, 11:42 PM
  4. multiple countdown timers in excel?
    By hollandrob81 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2013, 04:12 PM
  5. Countdown Timers?
    By phil2006 in forum Excel General
    Replies: 2
    Last Post: 09-11-2007, 07:00 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