I need a macro to run at a certain time on Wednesday's, and then a certain time on the other days.
I would like to use a cell to reference that time, but right now, I am just hard coding it, but I an not get it to run.
Ultimately what I am looking for is something like this:
Private Sub Workbook_Open()
If (Weekday = 3) Then
Application.OnTime TimeValue(Sheet2("E11"), "OpenMaster"
Else
Application.OnTime TimeValue(Sheet2("E12")), "OpenMaster"
End Sub
But I was not getting that to work, so then I just did a standard time code to test it, but even then it didn't work.
Standard code:
Private Sub Workbook_Open()
Application.OnTime TimeValue("17:10:00"), "OpenMaster"
End Sub
With the module code:
Sub OpenMaster()
Application.OnTime
TimeValue ("17:10:00"), "OpenMaster"
Workbooks.Open "G:\Make Your Day Program\8h Grade\Master 8.xls", UpdateLinks:=3
End Sub
But it didn't work....why? What did I do wrong?
Bookmarks