Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default 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 -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a single workbook from multiple workbooks Scrum Down Excel Discussion (Misc queries) 3 September 6th 06 09:01 AM
macro: copy multiple workbooks to multiple tabs in single book Michael Excel Programming 0 July 14th 06 04:53 PM
How to create different workbooks from a single worksheet fari Excel Programming 3 February 23rd 06 03:30 PM
Excel 2003 Referencing multiple workbooks via single variable BBohannon Excel Worksheet Functions 0 April 20th 05 08:32 PM
Multiple Workbooks to a Single Sheet Ken[_19_] Excel Programming 6 February 22nd 04 12:15 PM


All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"