ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   SelectionChange and Pivot Tables (https://www.excelbanter.com/excel-programming/365723-selectionchange-pivot-tables.html)

andym

SelectionChange and Pivot Tables
 
Dear All,

my testing to date doesn't show that a change in pivot table criteria
fields triggers a SelectionChange event.

As I get a "too many records to complete" error message when I try and
add a Calculated Item, I am attempting to add an additional column to
the right of the pivot table which does my calculation for me.

Basically I want to do the following:
1.Select Pivot Field criteria
2. Trigger SelectionChange
3. Run some code that calculates the number of rows returned in the
pivot table, then add some formulas to the right hand side of the pivot
based upon data in the pivot.

Is there a way I can trigger an event once the criteria changes in a
pivot table?


Regards,

andym


Jim Thomlinson

SelectionChange and Pivot Tables
 
Selection change is not triggered when part of a pivot table is changed. You
want the Pivot Change event (which only exists in XL2002 and beyond).
--
HTH...

Jim Thomlinson


"andym" wrote:

Dear All,

my testing to date doesn't show that a change in pivot table criteria
fields triggers a SelectionChange event.

As I get a "too many records to complete" error message when I try and
add a Calculated Item, I am attempting to add an additional column to
the right of the pivot table which does my calculation for me.

Basically I want to do the following:
1.Select Pivot Field criteria
2. Trigger SelectionChange
3. Run some code that calculates the number of rows returned in the
pivot table, then add some formulas to the right hand side of the pivot
based upon data in the pivot.

Is there a way I can trigger an event once the criteria changes in a
pivot table?


Regards,

andym



andym

SelectionChange and Pivot Tables
 
Thanks Jim....

looks like a good case for the boss to approve an upgrade!!!

Regards,

andym

Jim Thomlinson wrote:
Selection change is not triggered when part of a pivot table is changed. You
want the Pivot Change event (which only exists in XL2002 and beyond).
--
HTH...

Jim Thomlinson


"andym" wrote:

Dear All,

my testing to date doesn't show that a change in pivot table criteria
fields triggers a SelectionChange event.

As I get a "too many records to complete" error message when I try and
add a Calculated Item, I am attempting to add an additional column to
the right of the pivot table which does my calculation for me.

Basically I want to do the following:
1.Select Pivot Field criteria
2. Trigger SelectionChange
3. Run some code that calculates the number of rows returned in the
pivot table, then add some formulas to the right hand side of the pivot
based upon data in the pivot.

Is there a way I can trigger an event once the criteria changes in a
pivot table?


Regards,

andym





All times are GMT +1. The time now is 07:08 PM.

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