ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Run a macro after time (https://www.excelbanter.com/excel-programming/353590-run-macro-after-time.html)

alvin Kuiper

Run a macro after time
 
Hi
Is there away to run a macro auto
after a clock, like when there are gone
3 minnits the run macro

regards
Alvin


Bob Phillips[_6_]

Run a macro after time
 
Application Ontime will do this

Sub RunMacro()
Application.OnTime Now + TimeSerial(0, 3, 0), "OnTimeMacro"
End Sub

Sub OntimeMacro()
MsgBox "hello"
End Sub



--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"alvin Kuiper" wrote in message
...
Hi
Is there away to run a macro auto
after a clock, like when there are gone
3 minnits the run macro

regards
Alvin




alvin Kuiper

Run a macro after time
 
Thanks alot Bob
Its working
regards
Alvin


"Bob Phillips" wrote:

Application Ontime will do this

Sub RunMacro()
Application.OnTime Now + TimeSerial(0, 3, 0), "OnTimeMacro"
End Sub

Sub OntimeMacro()
MsgBox "hello"
End Sub



--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"alvin Kuiper" wrote in message
...
Hi
Is there away to run a macro auto
after a clock, like when there are gone
3 minnits the run macro

regards
Alvin






All times are GMT +1. The time now is 01:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com