eventrader
New Member
- Joined
- Jul 1, 2010
- Messages
- 10
I need a simple macro to execute every 15 seconds. The macro is to call two other macros every 15 seconds .Here is my code:
Sub ibstartstop()
'
' ibstartstop Macro
' Start stop running IB10 sec macro every 15 sec
'
' Keyboard Shortcut: Ctrl+x
'
Application.OnTime Now, "ib15sec"
dTime = Now + TimeValue("00:00:15")
Application.OnTime dTime, "ib15sec"
Application.OnTime dTime, "a"
End Sub
The macro starts fine and calls the other two macros, but does not repeat the process every 15 seconds.
PLEASE HELP
Sub ibstartstop()
'
' ibstartstop Macro
' Start stop running IB10 sec macro every 15 sec
'
' Keyboard Shortcut: Ctrl+x
'
Application.OnTime Now, "ib15sec"
dTime = Now + TimeValue("00:00:15")
Application.OnTime dTime, "ib15sec"
Application.OnTime dTime, "a"
End Sub
The macro starts fine and calls the other two macros, but does not repeat the process every 15 seconds.
PLEASE HELP