Scheduling a Verbal Reminder : TimeValue « Date Functions « VBA / Excel / Access / Word






Scheduling a Verbal Reminder

 
Sub ScheduleSpeak()
    Application.OnTime EarliestTime:=TimeValue("9:14 AM"), Procedure:="RemindMe"
End Sub
Sub RemindMe()
    Application.Speech.Speak Text:="meeting."
End Sub

 








Related examples in the same category

1.TimeValue(time) returns A Variant/Date containing the time for time
2.TimerValue function returns time value
3.TimeValue("9:00") returns 9:00:00 AM
4.Program an event for 3:00 p.m.:
5.To schedule an event relative to the current time - for example, 20 minutes from now