Excel VBA Macro to Display Message at a specific time -


really simple question here, can tell me why code display message in morning doesn't work? can't see why not working should simple!

sub setalarm()     application.ontime timevalue"09:30:00", "displayalarm" end sub  sub displayalarm()     msgbox "good morning" end sub 

try putting sub setalarm in workbook_open() event (please find code below). way sub automatically trigger when open workbook. in order trigger sub displayalarm, workbook needs open @ specified time.

private sub workbook_open()     application.ontime "09:30:00", "displayalarm" end sub 

Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -