Email Macro - How to send to two email addresses?

XL Learner

New Member
Joined
Oct 8, 2007
Messages
20
I have a macro that I copied from another workbook ( I don't know VBA) that allows me to email a workbook to a designated email address. I just keep copying and pasteing the macro, customizing it for every spreadsheet that I use it in.

What I would like to know, is there a way to change it so that the spreadsheet goes to more than one email address?

Here is my macro:

Sub TextBox1_Click()
MsgBox "For this [Insert File Name Here] to be processed you must select YES on the next Text Message Box that appears."
ActiveWorkbook.SendMail "[Insert Email Address Here]", "[Insert Subject of Email Here]"
ThisWorkbook.Close False
End Sub
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Is it even possible to send to two different emails simultaneously?

Sure, although the SendMail method is pretty limited. What's your e-mail client? If it's Outlook, see www.rondebruin.nl/sendmail.htm

Ron's got all the Outlook code you'll need and he does a great job of explaining it.

If you have a different e-mail client then post back and I'll try to point you in the right direction.

HTH,
 
Upvote 0
Just wanted to say thanks. The link contained enough information for me to figure out what I needed.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top