Segregation of Excel Worksheet into new workbooks

arviy2k

Board Regular
Joined
Jan 1, 2010
Messages
53
Hi,

I have an excel sheet that contains finance information for several cost centers. What I need to do is, filter each cost center, copy the information to a new workbook and save the new workbook. For example, if there are 15 cost centers in my file, I need to filter the data 15 times and copy paste into a new workbook.

Is there any way to automate this using VBA?

What I basically need is individual workbooks for each cost center to be created using the consolidated file. Note, there are multiple rows for each cost center, and cost center names are in column B of the data sheet.

Also, if there is a pivot table that uses my consolidated file for its source, is there a way to copy the pivot table over to the new workbook and use the filtered data as a source?

Thanks for your help.

Regards,
Arvind
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Wow that is exactly what I needed!! Unfortunately my office does not allow the installation of third party add-ins. Is there any way to get that kind of functionality through VBA?

Thank you very much for the excellent suggestion, VoG..

Regards,
Arvind.
 
Upvote 0
VoG,

That code is awesome!! Everything I was looking for and much more! Thank you so much.

Regards,
Arvind
 
Upvote 0

Forum statistics

Threads
1,215,860
Messages
6,127,378
Members
449,382
Latest member
DonnaRisso

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