VBA Macro to loop through drop down list and export images as files

rcheskin

New Member
Joined
Apr 7, 2016
Messages
2
I have a data validation drop down list with a list of over 100 names. When a name is selected from the list, data populates in a table below that displays a snapshot of weekly productivity for that individual. I want to create a vba macro to do the following: For each name in the range that populates the drop down list, create an image of a specific range of cells and save that image as a file (.jpg or .png are both OK) into a folder.

The ultimate goal is to use mail merge to automate individual e-mails that contain these images, so I'm thinking naming each file as the person's e-mail address is probably a good idea as well.


  • The worksheet that contains the range of names for the drop down list is "Sheet2" and the names are in column A.
  • The drop-down list and data table are in a worksheet named, "Coder Scorecard."
  • The drop down list is located in cell E1
  • The range of cells for the image is C1:J17

2a01dad.jpg
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,223,714
Messages
6,174,054
Members
452,542
Latest member
Bricklin

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