vba: pagefield items don't refresh

marbel

New Member
Joined
Feb 26, 2002
Messages
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
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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?
 
Upvote 0
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
 
Upvote 0
...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?

These are good questions that I'm unable to answer. But, "Hang in there". I'm sure someone else will respond to this thread.
This message was edited by Mark W. on 2002-03-13 11:46
 
Upvote 0

Forum statistics

Threads
1,213,492
Messages
6,113,967
Members
448,537
Latest member
Et_Cetera

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top