T
Tod
I'm trying to write code that will run when the user moves
pivot fields between page and row area.
My first idea was to enter a formula:
=Counta(A:A)
It's not a guarantee, but most times this would cause the
formula to change. So then I coded the Worksheet_Change
event. Of course this did not work because the Change
event looks for the actual content of the cell to change,
not the value of the formula. So I put my code in a
Worksheet Calculate event. This works, but the event will
run ANYTIME something on the sheet calculates. I don't
know any code that would limit the event to a range.
So... what can I do (Excel 2000 or older) to have code run
only when the pivot table is pivoted.
tod
pivot fields between page and row area.
My first idea was to enter a formula:
=Counta(A:A)
It's not a guarantee, but most times this would cause the
formula to change. So then I coded the Worksheet_Change
event. Of course this did not work because the Change
event looks for the actual content of the cell to change,
not the value of the formula. So I put my code in a
Worksheet Calculate event. This works, but the event will
run ANYTIME something on the sheet calculates. I don't
know any code that would limit the event to a range.
So... what can I do (Excel 2000 or older) to have code run
only when the pivot table is pivoted.
tod