Thread: On time Event
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ExcelMonkey[_127_] ExcelMonkey[_127_] is offline
external usenet poster
 
Posts: 1
Default On time Event

I am trying to program an alarm like this:

Sub SetAlarm()
Application.OnTime TimeValue("12:12:00 pm"), "DisplayAlarm"
End Sub

Sub DisplayAlarm()
Beep
MsgBox "Wake up. Its time for your afternoon break!"

End Sub

However it never seems to go off. I have put in a regular module.
What have I done wrong?

Thank-yo

--
Message posted from http://www.ExcelForum.com