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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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