I have an macro that runs several other macros using the ontime method.
Sub ontime()
Application.ontime TimeValue("5:25:00"), "daily1"
Application.ontime TimeValue("5:30:00"), "daily2"
Application.ontime DateValue("3/1/2011") + TimeValue("5:40:00"), "monthly"
Application.ontime DateValue("2/12/2011") + TimeValue("6:30:00"), "weekly"
End Sub
I want to write a code where the monthly and weekly are ran without me having to update the dates every week/month.
You see the monthly and weekly ontime method calls is hardcoded with a date and time and want to see the coding required for me to it run every Saturday morning for the weekly and every 1st of the month without ever having to update the ontime macro ever unless needed.
Please assist and thanks in advance.
Sub ontime()
Application.ontime TimeValue("5:25:00"), "daily1"
Application.ontime TimeValue("5:30:00"), "daily2"
Application.ontime DateValue("3/1/2011") + TimeValue("5:40:00"), "monthly"
Application.ontime DateValue("2/12/2011") + TimeValue("6:30:00"), "weekly"
End Sub
I want to write a code where the monthly and weekly are ran without me having to update the dates every week/month.
You see the monthly and weekly ontime method calls is hardcoded with a date and time and want to see the coding required for me to it run every Saturday morning for the weekly and every 1st of the month without ever having to update the ontime macro ever unless needed.
Please assist and thanks in advance.