Split WorkBook by values in a list

sweeneytime

Board Regular
Joined
Aug 23, 2010
Messages
183
Hi Guys,

I want to know is the following possible please?

I have say 50 cost centre: 10,20,30,40,50,60……. One per worksheet

Then a worksheet of what mangers gets what: each cost centre in a different cell

Paul: 10,40,50
Jim: 20,30,40
Mary: 40,60

Based on those cells I want to group the worksheets and put in them in a new workbook. The new workbook part is grand, it is just grouping them.

1) How would select a sheet based on a cell value?
2) Do I need to define variables to hold the values as it loops through each list of cost centres? Then group the variables so it creates the new workbook before moving to the next name?

I have thought about this for a while, but each light bulb moment gets smashed by the reality of noobi-ness!

Cheers,
Alan
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,216,165
Messages
6,129,246
Members
449,497
Latest member
The Wamp

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