Thread: macro
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Edwin Tam (MS MVP)[_2_] Edwin Tam (MS MVP)[_2_] is offline
external usenet poster
 
Posts: 3
Default macro

For example, you want to run the macro "my_Procedure" at 14.15, ...

Sub auto_open()
Application.OnTime TimeValue("14:15:00"), "my_Procedure"
End Sub

Sub my_Procedure()
MsgBox "hello"
End Sub

Regards,
Edwin Tam


----- madhan wrote: -----


hi,
i have a problem i want to execute a macro on a particular time of
a day automatically

thanx


------------------------------------------------
~~ Message posted from
http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements