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

Send email on clicking a button inside excel

Status
Not open for further replies.

mirage10

Programmer
May 18, 2005
38
US
Hello,
We have an excel file sitting on a shared drive where the problems are logged by the users. Is there any way that the users can click a button and an email is sent to one particular person with 'check the status' as the subject ?
any advise will be appreciated.
Thank you!

------------------------------------------
A Man can be only as happy.. as he makes up his mind to be
 
I used this a couple years ago for something like this. Hope it helps.

'This code will cause an e-mail to be sent
Set ol = CreateObject("Outlook.Application")
Set olns = ol.GetNamespace("MAPI")
Set olmail = ol.CreateItem(olMailItem)
With olmail
.To = "email address"
.Subject = "Subject"
.body = "Body"
.Send
End With


Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top