Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 175
Default 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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro / function text time to 24hr excel time passed midnight fortotaling hr's Russmaz Excel Worksheet Functions 2 March 6th 09 04:58 AM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
time and auto macro run by setting time ddiicc Excel Programming 1 September 29th 05 05:32 AM
Help with Macro to Convert Date/Time to Time Only Bill[_26_] Excel Programming 5 August 25th 04 01:50 PM
excel - macro - automatic initiation of a macro at a pre-specified "system time" arunjoshi[_3_] Excel Programming 3 May 1st 04 09:42 AM


All times are GMT +1. The time now is 05:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"