Hey Vijay, thanks for the response, the color piece is not working:
here is my code for the countdown clock:
Sub StartKlokka()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 1) = 0
Cells(3, 2) = 0
Range("A3").Select
ActiveCell.FormulaR1C1 = "=RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub Nedtelling5()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "00:05:00"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""00:05:00""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub Nedtelling10()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "00:10:00"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""00:10:00""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub Nedtelling15()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "00:15:00"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""00:15:00""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub Nedtelling20()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "00:20:00"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""00:20:00""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub Nedtelling30()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "00:30:00"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""00:30:00""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub Nedtelling45()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "00:45:00"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""00:45:00""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub Nedtelling60()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "01:00:00"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""01:00:00""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub Nedtelling90()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "01:30:00"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""01:30:00""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub Nedtelling120()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "02:00:00"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""02:00:00""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
3 GoTo 1
End Sub
Sub NedtellingTest()
'
' StartKlokka Macro
' Macro recorded 02.05.02 by Oddvar Gorset
'
'
Cells(3, 2) = "00:00:00"
Cells(3, 1) = "00:00:05"
Range("A3").Select
ActiveCell.FormulaR1C1 = "=""00:00:05""-RC[1]"
Starttid = Now()
1 Calculate
newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 1
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
Aktuelltid = Now()
Tid = Aktuelltid - Starttid
Cells(3, 2) = Tid
If Tid < 0 Then GoTo 4
3 GoTo 1
4 End
End Sub