Hi there,
See if the following code does what you require:
Obviously the worksheet names defined in the constants will need to be changed to match the names of the worksheets used in your workbook.
Similarly, the prefix defined above can be changed to whatever value you prefer.
The code works by saving a copy of your "Master" workbook in the same folder as the "Master" workbook itself, and with the same name as the "Master" workbook, but with the specified prefix added at the start of the name.
The code then opens the newly-created copy and scans all of its worksheets (except for the "Data Entry" and "Reference Data" worksheets).
During the scanning process the code deletes any rows which are hidden (e.g. by a filtering process), does a PasteSpecial operation of the values of all cells in the UsedRange of the worksheet, and turns any AutoFiltering off.
Finally, the code deletes the "Data Entry" and "Reference Data" worksheets, and saves the modified version of the "filtered" workbook.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks