select X first/last columns of a pivot table with VBA

E

ecompa

In a reporting application using pivot tables in Excel 97, I need t
solve the following problem.

How can I, using VBA code,
- select the 5 first columns of a pivot table and make a first group?
- then select all other columns, make a second group and summarize dat
of these last columns in a "Others" column?

Knowing that:
- data are in descending order, based on column values
- the number and name of columns can be different from one report t
the other.

Any help will be very much apreciated
 
Top