PC Review


Reply
Thread Tools Rate Thread

Create multiple workbooks from a single Excel spreadsheet

 
 
slowjam4
Guest
Posts: n/a
 
      6th Dec 2006
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.

 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      6th Dec 2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>


 
Reply With Quote
 
slowjam4
Guest
Posts: n/a
 
      11th Dec 2006
Hi Ron,
Your solution worked perfectly. Thanks for your prompt reply to my
question.


On Dec 6, 3:20 pm, "Ron de Bruin" <rondebr...@kabelfoon.nl> 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" <slowj...@gmail.com> wrote in messagenews:(E-Mail Removed)...
>
>
>
> > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to link single excel spreadsheet to multiple access tables tmdrake Microsoft Access External Data 1 20th Nov 2009 04:53 PM
How to import multiple CSV files into single Excel spreadsheet drdaya@gmail.com Microsoft Access External Data 1 29th Aug 2007 02:46 PM
VBA code to create multiple charts in a single Excel sheet i.sobha@gmail.com Microsoft Access 0 24th Apr 2007 11:45 AM
Excel 2003 Referencing multiple workbooks via single variable =?Utf-8?B?QkJvaGFubm9u?= Microsoft Excel Worksheet Functions 0 20th Apr 2005 08:32 PM
Create multiple Excel workbooks and sheets =?Utf-8?B?ZmFiZXJr?= Microsoft Access Form Coding 10 29th Mar 2005 08:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:04 AM.