Link to home
Start Free TrialLog in
Avatar of Amber Fortuno
Amber Fortuno

asked on

VBA - Saving multiple files (with custom filenames) based on filter value

Hi guys,

I'm new to macros and I'm enhancing this report of mine for efficiency. I was able to create the 1st two modules (for formatting and some computations). This is for the 3rd module and for the final step.

The scenario goes like this:
1. I have a source file (Working file.xlsx). This would be the result from the formatting by the 1st two macros that I have.
2. Column I will be the basis of the number of new workbooks that will saved. So, column I will be filtered and whatever is in it will be saved as a new workbook.
3. The filename is custom for every filtered value. Let's say the values in column I are A, B, and C, the filenames are Apple.xlsx, Banana.xlsx, Cherry.xlsx. (wondering if I could use a lookup table for this one)
4. I'm using Excel 2016, 64-bit.

Hope you could help me with this one. Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Amber Fortuno
Amber Fortuno

ASKER

Hi Roy,

Many thanks for this.  Have used the code that you provided, made a few edits to suit my file, and it worked perfectly. Thank you very much!


Best regards,
Amber Fortuno
The code that was provided has comments that made it easier for me to modify the code to fit my template.
Pleased to help