Hi Everyone,
I am looking for a macro to automate the following sequence of events:
Below are some specifics about the master workbook.
With over 50 sales reps, repeating steps 3-8 over fifty (50) times can get tedious and time consuming, so I’m looking for any opportunity to automate and speed up the process.
Thank you all in advance for any help you can provide.
Regards,
I am looking for a macro to automate the following sequence of events:
- Create as many copies of a workbook (with all the tabs) as there are unique names in the Sales Rep field
- Rename each file by adding “ – <Sales Rep First Name Last Name>” to the end of the filename
- Open each file, filter the database on the Sales Rep field, and unselect the Sales Rep whose name is on the file. Delete all records, and clear the filter on the Sales Rep field so that the only records remaining are those for the Sales Rep whose name is on the file.
- Select the “Pivot” tab in the workbook, select a cell in the pivot table, and select “Refresh All”
- Hide the “Pivot” tab
- Hide the “Data” tab
- Select the “Dashboard” tab
- Save and close the workbook
- Repeat steps 3-8 for each workbook
Below are some specifics about the master workbook.
- There are three (3) tabs. A “Data” tab with all the data, a “Pivot” tab which uses pivot tables to summarize the data from the “Data” tab, and a “Dashboard” tab which creates graphs and charts from the pivot tables in the “Pivot” tab
- The Sales Rep column is column AA, and there are over 50 unique Sales Rep names, so that means over 50 copies.
- The Master workbook has the following naming convention – “Weekly Product Trend Report – YYYY.MM.DD”
With over 50 sales reps, repeating steps 3-8 over fifty (50) times can get tedious and time consuming, so I’m looking for any opportunity to automate and speed up the process.
Thank you all in advance for any help you can provide.
Regards,