ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Create multiple workbooks from a single Excel spreadsheet (https://www.excelbanter.com/excel-programming/378879-create-multiple-workbooks-single-excel-spreadsheet.html)

slowjam4

Create multiple workbooks from a single Excel spreadsheet
 
Can someone help me with a Macro to create multiple workbooks from a
single Excel spreadsheet?The data on the spreadsheet is similar to the
following:

A B C
DEPTA XXXX YYYY
DEPTA AAAA BBBB
DEPTA DDDD RRRR
DEPTB SSSS TTTTT
DEPTB XXXXX AAAA
DEPTC AAAA BBBB
DEPTC JJJJJJ LLLLLL
..
..
..
..

I would like to create a new workbook with all of the rows for DEPTA in
it, another workbook with all of the rows for DEPTB in it, another
workbook with all of the rows for DEPTC in it, etc. If possible, I
would like the name of each new workbook to begin with the value in
column A. For example, DEPTAmmddyy.csv, DEPTBmmddyy.csv, etc.

Thanks for any suggestions.


Ron de Bruin

Create multiple workbooks from a single Excel spreadsheet
 
Hi slowjam4

Try this
http://www.rondebruin.nl/copy5.htm

Use this example
http://www.rondebruin.nl/copy5.htm#workbook

If you need more help post back


--

Regards Ron de Bruin
http://www.rondebruin.nl



"slowjam4" wrote in message
oups.com...
Can someone help me with a Macro to create multiple workbooks from a
single Excel spreadsheet?The data on the spreadsheet is similar to the
following:

A B C
DEPTA XXXX YYYY
DEPTA AAAA BBBB
DEPTA DDDD RRRR
DEPTB SSSS TTTTT
DEPTB XXXXX AAAA
DEPTC AAAA BBBB
DEPTC JJJJJJ LLLLLL
.
.
.
.

I would like to create a new workbook with all of the rows for DEPTA in
it, another workbook with all of the rows for DEPTB in it, another
workbook with all of the rows for DEPTC in it, etc. If possible, I
would like the name of each new workbook to begin with the value in
column A. For example, DEPTAmmddyy.csv, DEPTBmmddyy.csv, etc.

Thanks for any suggestions.



slowjam4

Create multiple workbooks from a single Excel spreadsheet
 
Hi Ron,
Your solution worked perfectly. Thanks for your prompt reply to my
question.


On Dec 6, 3:20 pm, "Ron de Bruin" wrote:
Hislowjam4

Try thishttp://www.rondebruin.nl/copy5.htm

Use this examplehttp://www.rondebruin.nl/copy5.htm#workbook

If you need more help post back

--

Regards Ron de Bruinhttp://www.rondebruin.nl

"slowjam4" wrote in ooglegroups.com...



Can someone help me with a Macro to create multiple workbooks from a
single Excel spreadsheet?The data on the spreadsheet is similar to the
following:


A B C
DEPTA XXXX YYYY
DEPTA AAAA BBBB
DEPTA DDDD RRRR
DEPTB SSSS TTTTT
DEPTB XXXXX AAAA
DEPTC AAAA BBBB
DEPTC JJJJJJ LLLLLL
.
.
.
.


I would like to create a new workbook with all of the rows for DEPTA in
it, another workbook with all of the rows for DEPTB in it, another
workbook with all of the rows for DEPTC in it, etc. If possible, I
would like the name of each new workbook to begin with the value in
column A. For example, DEPTAmmddyy.csv, DEPTBmmddyy.csv, etc.


Thanks for any suggestions.- Hide quoted text -- Show quoted text -




All times are GMT +1. The time now is 02:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com