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!

What is the code to send an excel file with Oulook

Status
Not open for further replies.

RFeniuk

Technical User
May 7, 2003
20
IN
I have an excel spreadsheet that I want to send to multiple users in outlook. I have tried to record a macro to use the "file--send--to mail recipients" command. When I run the macro is simply opens up a new dialogue box that I have to select user names for.

What I want it to do is to automatically select the same names each time and send the file.

Can this be done?

Thanks
Ron
 
Ron,

This should be what you are after

ActiveWorkbook.SendMail Array("someone@somewhere.com", "someoneelse@somewhere.com")


HTH



Matt
[rockband]
 
Ron de Bruin has a great addin called SENDMAIL to do this and much more, and most of the code is freely available as well:-


Great little newsgroup search addin as well.

Regards
Ken..............
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top