Hi, I have a macro that creates a subtotal what I would like to do is copy the subtotals to a new sheet where i would then add some formulas to work out percentages. could someone explain how to incorporate the copying of the data to a new sheet please
The macro code is shown below
Sub SubTotal()
'
' SubTotal Macro
' Macro recorded 28/10/2003 by Paul Oliver
'
'
Selection.SubTotal GroupBy:=2, Function:=xlSum, TotalList:=Array(14, 15, 16 _
, 17), Replace:=True, PageBreaks:=False, SummaryBelowData:=True
ActiveSheet.Outline.ShowLevels RowLevels:=2
End Sub
Regards
Paul
The macro code is shown below
Sub SubTotal()
'
' SubTotal Macro
' Macro recorded 28/10/2003 by Paul Oliver
'
'
Selection.SubTotal GroupBy:=2, Function:=xlSum, TotalList:=Array(14, 15, 16 _
, 17), Replace:=True, PageBreaks:=False, SummaryBelowData:=True
ActiveSheet.Outline.ShowLevels RowLevels:=2
End Sub
Regards
Paul