Automatic Emailing via Macro

hcabs99

Active Member
Joined
May 9, 2006
Messages
254
All

Some advise please, i am looking to automate the sending of various spreadsheet via an excel macro, but there are 2 things i am stuck on:


1 The Macro, takes a master sheet, runs various filters and opens up documents to paste the filtered data in, i would like to be able to rename each of these documents and save them as the new name. These i then email to a predefined group of addresses

2) I can get as far as creating the email with an attachment in , i dont know how to automatically add in the receipiants

Any advise?

Cheers
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

texasalynn

Well-known Member
Joined
May 19, 2002
Messages
8,458
are the recipients listed in your file? I do this by referencing the cell address, example

.To = Cells(2, 9)
.CC = Cells(2, 10)
 

hcabs99

Active Member
Joined
May 9, 2006
Messages
254
Thanks for the response, however im not clear on how to imbed this within the code

Currently the email send part of the code reads

"Application.Dialogs(xlDialogSendMail).Show"

How do i add the email addresses from the workbook?

Also, can you help re the renaming of sheets upon save please?

Cheers
 

Watch MrExcel Video

Forum statistics

Threads
1,129,361
Messages
5,635,808
Members
416,884
Latest member
leeshjay

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
Top