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

Send e-mail from Excel

Status
Not open for further replies.

mot98

MIS
Jan 25, 2002
647
CA
Hi All,

I am pretty sure this is doable....I am looking to setup an automatic e-mail that will get sent out everytime an excel document is saved.

Can someone give me some examples on how to set this up?

Thanks,
mot98
[cheers]

"Victory goes to the player who makes the next-to-last mistake."
- Chessmaster Savielly Grigorievitch Tartakower (1887-1956)
 
Personally, rather than use a 2nd process to monitor this, I would just bind to the BeforeSave event within the workbook.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)

'Send mail with whatever client you wish
If Not lMailSent Then
Cancel = True
MsgBox "You can't save because the email wasn't sent"
End If
End Sub Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top