ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   HELP for COUNTDOWN TIMER (https://www.excelbanter.com/excel-discussion-misc-queries/87345-help-countdown-timer.html)

CC

HELP for COUNTDOWN TIMER
 

I need to build a countdown timer and show it in a Excel spreadsheet


thanks


Ardus Petus

HELP for COUNTDOWN TIMER
 
Paste the following code into a Module, and run it:

Public Sub CountDown()
Const oneSecond As Double = 1 / 24 / 3600
With Worksheets("Sheet1").Range("A1")
.Value = .Value - oneSecond
End With
Application.OnTime Now + oneSecond, "CountDown"
End Sub


"CC" a écrit dans le message de news:
...

I need to build a countdown timer and show it in a Excel spreadsheet


thanks




CC

HELP for COUNTDOWN TIMER
 
What about put this information (countdowntimer) in a msgbox or form ?

CC


"Ardus Petus" wrote:

Paste the following code into a Module, and run it:

Public Sub CountDown()
Const oneSecond As Double = 1 / 24 / 3600
With Worksheets("Sheet1").Range("A1")
.Value = .Value - oneSecond
End With
Application.OnTime Now + oneSecond, "CountDown"
End Sub


"CC" a écrit dans le message de news:
...

I need to build a countdown timer and show it in a Excel spreadsheet


thanks





Ardus Petus

HELP for COUNTDOWN TIMER
 
I'm no good at userforms!

Sorry I can't help any further
--
AP

"CC" a écrit dans le message de news:
...
What about put this information (countdowntimer) in a msgbox or form ?

CC


"Ardus Petus" wrote:

Paste the following code into a Module, and run it:

Public Sub CountDown()
Const oneSecond As Double = 1 / 24 / 3600
With Worksheets("Sheet1").Range("A1")
.Value = .Value - oneSecond
End With
Application.OnTime Now + oneSecond, "CountDown"
End Sub


"CC" a écrit dans le message de news:
...

I need to build a countdown timer and show it in a Excel spreadsheet


thanks








All times are GMT +1. The time now is 04:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com