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

  • Thread starter Thread starter ecompa
  • Start date Start date
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
 

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

Back
Top