Automatic Emailing via Macro

hcabs99

Active Member
Joined
May 9, 2006
Messages
257
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

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
257
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,956
Messages
5,834,576
Members
430,298
Latest member
Stanles

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