excel - Using application.ontime for a time tomorrow -
i have written timer in vba in excel using application.ontime makes sound , gives message box when end time reached.
this works fine when time later in same day, when goes next day timer ends right away, time has passed today.
eg if time 7:00 pm , want timer go off @ 6:00 tomorrow, timer goes off because 6:00 has passed today.
is there way of incorporating date application.ontime call? better off using other function?
thanks
caroline
you can use:
application.ontime date + 1 + timeserial(6,0,0), "macro_name"
as long don't close excel before 6am tomorrow. ;)
Comments
Post a Comment