trying to start a sheet update routine with the timer using a variable. see code below, when I try the hard code that works with a variable it doesn't start the timer, perhaps a different way to start the timer?
Public Sub startTimer()
'... the following is the procedure to run on the timer'
saveRTDinfo 'Sub saveRTDinfo()
alertTime = alertTime 'for debugging to view value
alertTime = now + TimeValue(alertTime) 'don't work see next line
'debug.print "alertTime = " & alertTime, this prints 00:02:00, literally, without parens
alertTime = now + TimeValue("00:02:00") 'this works
'Application.OnTime alertTime, "EventMacro" this worked
Application.OnTime EarliestTime:=alertTime, _
Procedure:="startTimer", schedule:=True
End Sub
Public Sub startTimer()
'... the following is the procedure to run on the timer'
saveRTDinfo 'Sub saveRTDinfo()
alertTime = alertTime 'for debugging to view value
alertTime = now + TimeValue(alertTime) 'don't work see next line
'debug.print "alertTime = " & alertTime, this prints 00:02:00, literally, without parens
alertTime = now + TimeValue("00:02:00") 'this works
'Application.OnTime alertTime, "EventMacro" this worked
Application.OnTime EarliestTime:=alertTime, _
Procedure:="startTimer", schedule:=True
End Sub