Saving a file multiple times using each choice in a drop down list

Francoise White

New Member
Joined
Jul 6, 2011
Messages
4
Hi

How can I build a macro to select each choice in a drop down list individually and, after each selection, save the file with the name of the drop down cell selected ? After saving each file, I'd also like to break the links in the saved files but not the main file.

So, for example, the main file has 10 sheets pulling data from other locations based on the name of a branch in cell a1 in sheet 1. Cell a1 is a validated data cell referring to the list of the 50 branch names further down in the same sheet.

All help warmly welcomed.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi pbornemeier,

Thank you for the quick response -- I should have been more clear in my original question. The Excel file format is the same (and correct).

However, the formatting of the output files changed. For example, all of the blue tabs in the "master" file turn green in the individual output files. In addition, everything that was highlighted in yellow in the original file is now highlighted in a strange orange color. Finally, all of the graphs changed colors.

Is there a way to preserve and maintain the formatting of the file in the code?

Thank you again for the quick reply.

Best,
Ryan



What was the file format of the original file?
Did the filenames in the A1DDListSource named range contain a file extension?
What was the file format of the new files?

This is the new link to Ron deBruin's SaveAs webpage: Use VBA SaveAs in Excel 2007-2016
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,275
Members
452,902
Latest member
Knuddeluff

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