Hi,
I'm using Office 2010. I have an excel workbook which is the summary of expenses for all cost centers for a year, and a few pivot tables that link to this data.
What I need, is individual reports for each cost center. How I do it currently is, if there are 5 cost centers, I create 5 copies of the file, delete data for all cost centers except one and refresh the pivots. Is there any way to automate this using VBA? Automation will help save a lot of time and effort.
I have uploaded a sample file. This file is a consolidation of all the cost centers assigned to me. I need individual files created for each cost center. The actual file contains more data columns and pivot sheets, but this file is easier to understand. In the sample file, cost center is Column A on the data worksheet.
http://www.mediafire.com/?9h1z4sbyohr6bot
What needs to be done:
1. Data for all except one cost center to be deleted and pivots refreshed.
2. New file to be created with all sheets of the workbook, saved with the cost center name suffixed to the file.
3. Process to be repeated for each additional cost center in the data sheet.
Thank you so much for your help. Really appreciate it.
Regards,
Arvind.
I'm using Office 2010. I have an excel workbook which is the summary of expenses for all cost centers for a year, and a few pivot tables that link to this data.
What I need, is individual reports for each cost center. How I do it currently is, if there are 5 cost centers, I create 5 copies of the file, delete data for all cost centers except one and refresh the pivots. Is there any way to automate this using VBA? Automation will help save a lot of time and effort.
I have uploaded a sample file. This file is a consolidation of all the cost centers assigned to me. I need individual files created for each cost center. The actual file contains more data columns and pivot sheets, but this file is easier to understand. In the sample file, cost center is Column A on the data worksheet.
http://www.mediafire.com/?9h1z4sbyohr6bot
What needs to be done:
1. Data for all except one cost center to be deleted and pivots refreshed.
2. New file to be created with all sheets of the workbook, saved with the cost center name suffixed to the file.
3. Process to be repeated for each additional cost center in the data sheet.
Thank you so much for your help. Really appreciate it.
Regards,
Arvind.