Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rich
 
Posts: n/a
Default split results to multiple worksheets

I have a workbook which is a list of sales transactions. Column A is a
unique customer reference number which identifies the customer. Each
customer has anything from 1 to hundreds of transactions.

I'm trying to write a macro to export all transactions for each customer,
into a new workbook for each unique customer number, so if I run the macro
on my original workbook with 50 customers purchases, I get 50 workbooks each
with an individual customers purchase history...

I don't really know where to start. Help gratefully recieved.

Rich



  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I'd steal some code from Debra Dalgleish's site:
http://www.contextures.com/excelfiles.html

Create New Sheets from Filtered List -- uses an Advanced Filter to create
separate sheet of orders for each sales rep visible in a filtered list; macro
automates the filter. AdvFilterRepFiltered.xls 35 kb

Her code creates a new sheet in the existing workbook, but it shouldn't be too
hard to modify it to create a new workbook.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Rich wrote:

I have a workbook which is a list of sales transactions. Column A is a
unique customer reference number which identifies the customer. Each
customer has anything from 1 to hundreds of transactions.

I'm trying to write a macro to export all transactions for each customer,
into a new workbook for each unique customer number, so if I run the macro
on my original workbook with 50 customers purchases, I get 50 workbooks each
with an individual customers purchase history...

I don't really know where to start. Help gratefully recieved.

Rich


--

Dave Peterson
  #3   Report Post  
Harlan Grove
 
Posts: n/a
Default

Dave Peterson wrote...
I'd steal some code from Debra Dalgleish's site:
http://www.contextures.com/excelfiles.html

....

I know you're speaking colloquially, but equating 'steal' with 'use'
with regard to effectively public domain source code carries
unfortunate overtones.

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

Ok, I'd take that code...

Harlan Grove wrote:

Dave Peterson wrote...
I'd steal some code from Debra Dalgleish's site:
http://www.contextures.com/excelfiles.html

...

I know you're speaking colloquially, but equating 'steal' with 'use'
with regard to effectively public domain source code carries
unfortunate overtones.


--

Dave Peterson
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
What is the quickest method to insert & name multiple worksheets . clyonesse Excel Worksheet Functions 8 September 20th 05 10:55 PM
fax multiple worksheets volleyman Excel Worksheet Functions 0 March 30th 05 05:51 PM
Extracting data from multiple worksheets into a list mnirula Excel Worksheet Functions 16 February 25th 05 08:52 PM
adding certain cells in multiple worksheets in multiple workbooks Stephen via OfficeKB.com Excel Worksheet Functions 1 February 4th 05 08:31 PM
Countif with multiple criteria and multiple worksheets JJ Excel Worksheet Functions 1 December 28th 04 06:37 PM


All times are GMT +1. The time now is 05:08 PM.

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

About Us

"It's about Microsoft Excel"