![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Posts: 5
|
I am trying to cycle through the pagefields of a pivot table, but the macro crashes if the items changed since the last update. For example, if the items were apple, orange, banana, and now they are apple, banana, cherry, it is still looking for pagefield "orange," and crashes. Why does the list not update, and how can I force it to re-evaluate the items? Thanks,
mb |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
I'm not a VBA wizard, but I know a thing or two about PivotTables. Have you considered checking the "Show items with no data" PAGE field option?
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Feb 2002
Posts: 5
|
That is sort of the issue - I don't want to cycle through the items with no data... is there a way to limit the pagefields to items with data, programmatically? How would you ensure that it was re-evaluated for a pivottable refresh?
Thanks for your input, you are definitely right about the items with no data causing my problem. mb |
|
|
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
[ This Message was edited by: Mark W. on 2002-03-13 11:46 ] |
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Feb 2002
Posts: 5
|
(bump)
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|