Excel 2003 : Group By

  • Thread starter Thread starter Lakshmi
  • Start date Start date
L

Lakshmi

Hello All,

After upgradation of Ms Office to 2003.
I was suppose to group the data, based on first Column, second column and
then on third column. But the grouping is skipping few lines..

First Grouping is happening properly , from second onwards is the problem.My
macro is having these 3 lines .
"This was working fine in Excel 97".

Selection.Subtotal GroupBy:=1, Function:=xlSum, TotalList:=Array(5, 6, 7, _
8, 9, 10, 11, 12, 13), Replace:=False
Selection.Subtotal GroupBy:=2, Function:=xlSum, TotalList:=Array(5, 6, 7, _
8, 9, 10, 11, 12, 13), Replace:=False
Selection.Subtotal GroupBy:=3, Function:=xlSum, TotalList:=Array(5, 6, 7, _
8, 9, 10, 11, 12, 13), Replace:=False

Regards,
Lakshmi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Selection Change - Data Sub Totals? 2
macro excel subtotal in subtotal 2
Subtotals 1
Subtotal Formatting 2
Using Subtotal: How to update TotalList:= 2
Subtotals 2
Subtotal by VBA 5
Excel Subtotals 2

Back
Top