ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   select X first/last columns of a pivot table with VBA (https://www.excelbanter.com/excel-programming/296283-select-x-first-last-columns-pivot-table-vba.html)

ecompa

select X first/last columns of a pivot table with VBA
 
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

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 03:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com