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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send mail from excel on a specified time

Status
Not open for further replies.

StormVoogd

Programmer
Apr 19, 2001
10
NL
hia

i want to save a excel worksheet and then send it as an attachment at a specified time....

i've got an tekstbox to show me the system time and at bv.
17.30 he has to save the excelsheet and send the sheet as an attachment by mail to one adres...

anyone any idear of how to do that...

Grtzzz...
chris govaarts
 
See if this helps:

'This procedure must be run to set the start time of the next procedure that actually sends the entire workbook.

Sub SendMailOnSpecificTime()
Application.OnTime earliesttime:=TimeValue("23:06:00"), procedure:="NameOfProcedure"
End Sub


Sub NameOfProcedure()
With Application
.StatusBar = "Sending mail..."
.Dialogs(xlDialogSendMail).Show
.StatusBar = False
End With
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top