VBA code based on cell list and create new worksheet

Djoko

New Member
Joined
Apr 14, 2017
Messages
1
Hello all,


We have a routine task where we copy and paste the PnL information but with different customers to new worksheets.
- In the sheet "PnL", I have a Pivot table that I can filter different customers to see Revenue, Margin and Costs information.
- I have to select each customer/plant and manually copy and past to a new worksheet


I'm trying to get an excel macro that based on different Pivot table filtering, I'll generate new worksheet with the information I have in the "PnL" worksheet.
The list of sheet name will be "Filter list" and it contains 3 columns.
a) sheet name: created worksheet
b) customer name: e.g. nike
c) site: e.g. china
Please note that the Pivot table filter will depends on "b" and "c".


Is that possible? Thanks for your time.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,226,114
Messages
6,189,052
Members
453,522
Latest member
Seeker2025

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