Macro to cycles through drop-down selection and send email with attachment

Paul_Will

New Member
Joined
Jun 5, 2015
Messages
1
Hello

I have created a dashboard report that draws in various sources of information. This is tailored depending on the value selected in a dropdown (ie the lookups selection the appropriate information for that value). There are around 120 different options in the dropdown so in effect I have 120 different dashboard reports.

What I would like to do is produce a macro that cycles through each selection in the dropdown and sends an email to the relevant address for the value in the dropdown, with the dashboard report either included as an excel attachment or in the body of the email. The values in the dropdown are all people so I can have appropriate email address on the sheet somewhere.

I would also need to include some text at the top of the email, so if I selected Joe Bloggs in the dropdown would want the email to say:

"Dear Joe

Please find attached/below, the dashboard report for blah blah blah."

Again, I can include the correct name for the email somewhere on the active sheet or on a lookup sheet.


I have used VBA a bit either writing simple macros or looking up and copy/paste how to do more complicated things, but am stuck with this. I am pretty proficient in most non-VBA excel.

Any help that can be offered would be greatly appreciated.

Regards
Paul
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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