Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
final answer to run macro at certain time
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JMB" data-source="post: 6063806"><p>You could use OnTime to run a macro at a specified interval. In this</p><p>example, "Test" will run "Test2" after 10 seconds. Then, when Test2 runs, it</p><p>will call the first macro and the process repeats.</p><p></p><p></p><p>Sub Test()</p><p>Application.OnTime Now + TimeValue("00:00:10"), "Test2"</p><p>End Sub</p><p></p><p>Sub test2()</p><p>MsgBox "Hello"</p><p>Call Test</p><p>End Sub</p></blockquote><p></p>
[QUOTE="JMB, post: 6063806"] You could use OnTime to run a macro at a specified interval. In this example, "Test" will run "Test2" after 10 seconds. Then, when Test2 runs, it will call the first macro and the process repeats. Sub Test() Application.OnTime Now + TimeValue("00:00:10"), "Test2" End Sub Sub test2() MsgBox "Hello" Call Test End Sub [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Excel Newsgroups
Excel Programming
final answer to run macro at certain time
Top