Macro to e-mail different sheets in a single mail to e-mail addresses present in excel sheet

swetamies

New Member
Joined
Nov 3, 2018
Messages
2
Existing Macro:- I have an existing macro with a send Email button on clicking it will send separate mails with single attachment to all the owner.present in the excel sheet.


Requirement:- while clicking on send mail button it should first pick an owner i.e. mail recipient from coloum D of "List of Data Providers" tab and then should look for all attachments associated with that so that instead of sending multiple mails to 1 person with a single attachment we can send a single mail with all the attachments associated with them.

I need this on urgent basis if anyone has any suggestions, I would love to hear them.

Columns from where I need to pick up the details are:-

NoRAS MetricNameEmailCCCountryName2
6.2Regulatory EngagementSwetaSweta.Gupta@gmail.com IndiaSweta Gupta
6.3Open Regulatory FindingsSwetaSweta.Gupta@gmail.com IndiaSweta Gupta
6.1Non-compliance with lawsSwetaSweta.Gupta@gmail.com IndiaSweta Gupta

<colgroup><col><col><col><col><col><col span="2"></colgroup><tbody>
</tbody>


Thanks,
Sweta
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
It would help to see the existing macro....but something like this needs to be included BEFORE you loop through your recipient list.

Code:
ans = MsgBox("Will you need to add further attachments ??", vbYesNo)
        If ans = vbYes Then
            AttachFileName = Application.GetOpenFilename("Files (*.**)," & _
                                "*.**", 1, "Select File", "Open", True)
 
Upvote 0
It would help to see the existing macro....but something like this needs to be included BEFORE you loop through your recipient list.

Code:
ans = MsgBox("Will you need to add further attachments ??", vbYesNo)
        If ans = vbYes Then
            AttachFileName = Application.GetOpenFilename("Files (*.**)," & _
                                "*.**", 1, "Select File", "Open", True)


I don't want any pop up to ask for attachment, it just pick the attachments with a single mail id, attach all in one mail and send it automatically
 
Upvote 0

Forum statistics

Threads
1,215,329
Messages
6,124,301
Members
449,149
Latest member
mwdbActuary

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