Excel Time Macros on Weekday Only

April 22, 2009 by vba excel
Filed under: Excel Spreadsheet, Excel Vba 
Sponsor

Excel Vba Time Macros on Weekday Only [Q]

Ive a problem when setting time macros on weekday using microsoft excel vba. How to set the time macro. I want to set a time macro which only run on specified time on weekday only in excel spreadsheet. May I know how to write in excel vba please ?
Thanks so much.

Excel Vba Time Macros on Weekday Only [A]

To solve your problem regarding how to setup excel time macro on weekday only, Use Application.OnTime and set the time as below

Public dTime As Date

Sub MyMacro()
dTime = Now + TimeValue(”00:15:00″)
Application.OnTime dTime, “MyMacro”
End Sub

  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google
  • E-mail this story to a friend!
  • Live
  • MisterWong
  • Propeller
  • StumbleUpon
  • Technorati
  • TwitThis
  • YahooMyWeb
  • Print this article!

Rate This Tips:

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...


Incoming excel search terms

excel weekday,vba weekday,excel macro weekday,mss,excel vba weekday,excel weekdays only,calculate weekdays in excel,excel time macros,excel vba application ontime,weekday excel,weekday vba excel,,excel run macros at weekdays,excel weekdays,how do you change excel formula to remove time,time in vba,calculate weekdays macro,current time and date macro in excel,excel average weekdays,excel calculate weekdays,excel date and time macro,excel date macros,excel date range weekday,excel date weekday only,excel insert time macro,excel macro application ontime,excel macro date time updating,excel macro time,excel macros time,excel run macro time,excel spreadsheet set date and time,excel time to perform macro,excel timing macro,excel vba automatic run macro weekdays,excel weekday only,how to calculate time average in excel,how to calculate weekdays in excel,how to change weekdays in excel,how to date multiple spreadsheets with weekdays in excel,how to make excel have only weekdays?,how to set up weekday in excel,last weekday vba,macro excel calculate time,macro weekday,ms excel weekdays only,set weekday in excel,time macro,time macros,vba automatic run macro weekdays,vba excel weekday



Related Excel Tips

Comments

Have another excel answer or questions for this problem ?
Feel free to post it here..