I have the following sub in the ThisWorkbook section:
I want it to run every day at 3 am. But it's running only once.
Hmm, I think I see my problem, under the thisWorkbook it's under workbook and Open so obviously it's only excuting once upon opening. Should I just have it as (General) (Declarations) ?
Does an application.OnTime macro even need to be in ThisWorkbook section? I thought I had read in a tutorial to set it up like that but I may be mistaken.
Code:
Private Sub Workbook_Open()
Application.OnTime TimeValue("03:00:00"), "START_procedure"
End Sub
I want it to run every day at 3 am. But it's running only once.
Hmm, I think I see my problem, under the thisWorkbook it's under workbook and Open so obviously it's only excuting once upon opening. Should I just have it as (General) (Declarations) ?
Does an application.OnTime macro even need to be in ThisWorkbook section? I thought I had read in a tutorial to set it up like that but I may be mistaken.