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

Macro to email Excel file

Status
Not open for further replies.

pryest

Programmer
Dec 26, 2006
24
0
0
US
I am trying to find out if there is a way to setup a macro to send a excel workbook to a specific email address. I have been able to record a macro that will open an email with the file attached using the Send To feature however I would like to also have the email address fill in as well. That way all the user would have to do would be to click Send on the email. Is this even possible? Thanks.
 
Play around with this:

Code:
ActiveWorkbook.SendMail "Recipient@emailaddress.com", "Subject"

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Thanks. I didn't realize this was a VBA question since I was just using the macro recording tool but I will certainly do that in the furture. Thanks again!


Mike
 
Glad to help!

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top