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

Code for sending Email (Off2000)

Status
Not open for further replies.

BatFace

Technical User
Oct 17, 2001
24
AU
Thanks in advance to anyone who can help me (again).

This time I'm after code to send an email - from excel. I managed to get the message box to appear, with the file attached with -
Application.Dialogs(xlDialogSendMail).Show

then I added the below code (which I found here using keyword search).

'Select and Email each file
MailName = Selection.Range("A1")
MailFile = Selection.Range("B1")
Windows(MailFile).Activate
ActiveWorkbook.SendMail Recipients:=MailName,_ Subject:="Here ya go . . ."

But I can't get the email recipient to appear, and then actually have the message sent.

Once again thanks for your help!

[bat]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top