Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help writing macro

Status
Not open for further replies.

morrow314

MIS
Apr 10, 2000
12
0
0
US
I have a macro that sends my e-mail, but I want it to run ONLY on Fridays. This is probably easier than I think but I'm at a loss. Any help is appreciated!
 
Add some code to the timer event of a form. Something like:

if weekday(date) = 5 then
sendmail
end if

(i think 5 is friday)

The only thing is the form has to be open.

Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top