Hi all,
You can use the OnTime macro to run procedures at certain times:
But how do I set the arguments that MyProcedure requires to run?
For example, I have a procedure:
Lets say I want Arg1 = 2. The following do not work:
So does anyone know what does?!
Cheers,
Graeme.
You can use the OnTime macro to run procedures at certain times:
Code:
Application.OnTime "07:30", "MyProcedure"
But how do I set the arguments that MyProcedure requires to run?
For example, I have a procedure:
Code:
Sub MyProcedure (Arg1)
a = Arg1
End Sub
Lets say I want Arg1 = 2. The following do not work:
Code:
Application.OnTime "07:30", "MyProcedure(2)" '(Can't find 'MyProcedure(2)'
Application.OnTime "07:30", "MyProcedure" (2) 'Syntax Error
So does anyone know what does?!
Cheers,
Graeme.