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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
are the recipients listed in your file? I do this by referencing the cell address, example

.To = Cells(2, 9)
.CC = Cells(2, 10)
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,850
Members
449,051
Latest member
excelquestion515

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