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!

Excel E-mail Submit button 1

Status
Not open for further replies.

carmo

MIS
Dec 15, 2002
92
CA
How can you create an Excel submit button that sends the spreadsheet to an e-mail recipient. I am looking for something like the sendobject in MS - Access. Thanks.

Carmo
 
The VBA script to submit an active worksheet through Microsoft Outlook is pretty easy:

ActiveWorkbook.SendMail ("Recepiants Email address")

Using this command, the activeworksheet is sent as an attachment with the subject of the email as the title of the active worksheet.

Problems arise on two fronts:

1. If not all users are using MS Outlook the SendMail command (originally a Unix System command) will connect with the current email system ok, but I'm not sure how the email address need to be formatted.

2. Excel 2000 displays a security alert that Excel is sending an email.

Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top