Hi Marc
Yes this would certainly be possible. Try this code:
Sub PlaceOnSheets()
Dim i As Integer
Dim sName As String
Dim shtStart As Worksheet
'Written by OzGrid Business Applications
'www.ozgrid.com
''''''''''''''''''''''''''''''''''''''''
'Creates a new sheet for each Column
'heading in Row 1 of the ActiveSheet
'''''''''''''''''''''''''''''''''''''''''
Application.ScreenUpdating = False
'Set Worksheet Varaible to ActiveSheet
Set shtStart = ActiveSheet
'Loop through each Column of the ActiveSheet
'and create a new sheet named the same as the
'Column heading. Then fill Column A of the new sheet
'with the contents of Column i of shtStart
For i = 1 To WorksheetFunction.CountA(shtStart.Rows(1))
sName = shtStart.Cells(1, i)
Sheets.Add().Name = sName
ActiveSheet.Colulms(1) = shtStart.Columns(i)
Next i
Application.ScreenUpdating = True
End Sub
Dave
OzGrid Business Applications
Thank you Dave, but I have one detail more...
Dave,
Everything would be OK if I received each product in a different column. But on my worsheet I have only two columns: one for the products and one for their orders. So I can't a worsheet for each columns. What I'd like is a worsheet by product and its order.
Sorry if I explained myself in a bad way.
Marc