Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a large .CSV spreadsheet that shows all of sales history for the
past 12 months. I would like to separate that data into bottom-tabbed worksheets. I will end up with about 100 worksheets. Our 10-digit customer code is the first column in the spreadsheet. When this report was run once a month, I just cut and pasted the data into separate worksheets manually. However, now the bosses want to be able to run this report on demand. If it would make the problem easier, I could break the data down into separate spreadsheets wneh I export it from the filePro DBMS system. IE, acmeco.csv, jonesinc.csv, smith.csv, etc. Thanks! |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Mike,
Import the CSV file into an Excel workbook, then run the macro below. HTH, Bernie MS Excel MVP Sub ExportSheetsFromDatabase() 'Based on the value in the first column Dim myCell As Range Dim mySht As Worksheet Dim myName As String Dim myArea As Range Set myArea = Range("A1").CurrentRegion.Columns(1).Offset(1, 0).Cells Set myArea = myArea.Resize(myArea.Rows.Count - 1, 1) For Each myCell In myArea On Error GoTo NoSheet myName = Worksheets(myCell.Value).Name GoTo SheetExists: NoSheet: Set mySht = Worksheets.Add mySht.Name = myCell.Value With myCell.CurrentRegion .AutoFilter Field:=1, Criteria1:=myCell.Value .SpecialCells(xlCellTypeVisible).Copy _ mySht.Range("A1") mySht.Cells.EntireColumn.AutoFit .AutoFilter End With Resume SheetExists: Next myCell End Sub "Mike Schwartz" wrote in message ... I have a large .CSV spreadsheet that shows all of sales history for the past 12 months. I would like to separate that data into bottom-tabbed worksheets. I will end up with about 100 worksheets. Our 10-digit customer code is the first column in the spreadsheet. When this report was run once a month, I just cut and pasted the data into separate worksheets manually. However, now the bosses want to be able to run this report on demand. If it would make the problem easier, I could break the data down into separate spreadsheets wneh I export it from the filePro DBMS system. IE, acmeco.csv, jonesinc.csv, smith.csv, etc. Thanks! |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi mike
See also http://www.rondebruin.nl/copy5.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Mike Schwartz" wrote in message ... I have a large .CSV spreadsheet that shows all of sales history for the past 12 months. I would like to separate that data into bottom-tabbed worksheets. I will end up with about 100 worksheets. Our 10-digit customer code is the first column in the spreadsheet. When this report was run once a month, I just cut and pasted the data into separate worksheets manually. However, now the bosses want to be able to run this report on demand. If it would make the problem easier, I could break the data down into separate spreadsheets wneh I export it from the filePro DBMS system. IE, acmeco.csv, jonesinc.csv, smith.csv, etc. Thanks! |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks! Bernie's macro did the trick, but I'm going to bookmark your
page just in case I need to modify it. Mike Schwartz "Ron de Bruin" wrote: Hi mike See also http://www.rondebruin.nl/copy5.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Mike Schwartz" wrote in message ... I have a large .CSV spreadsheet that shows all of sales history for the past 12 months. I would like to separate that data into bottom-tabbed worksheets. I will end up with about 100 worksheets. Our 10-digit customer code is the first column in the spreadsheet. When this report was run once a month, I just cut and pasted the data into separate worksheets manually. However, now the bosses want to be able to run this report on demand. If it would make the problem easier, I could break the data down into separate spreadsheets wneh I export it from the filePro DBMS system. IE, acmeco.csv, jonesinc.csv, smith.csv, etc. Thanks! |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Where do I send the Pizza Hut Gift Card???
Getting a "Thanks!" is sufficient... Thanks, Bernie |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
spreadsheet is too large | Excel Discussion (Misc queries) | |||
need a large spreadsheet | Excel Discussion (Misc queries) | |||
Need to separate large verticle data set into columns with 50 entries | Excel Discussion (Misc queries) | |||
Save 2 separate data imports in separate worksheets on the same ex | Excel Worksheet Functions | |||
large spreadsheet | Excel Worksheet Functions |