Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cycling Through Page Fields
I have a routine that cycles through page fields in a pivot table using VB
code. For the most part, things work fine, but every now and then, I have an item in my list that doesn't exist in the data generating the pivot table. The code is generating some errors as a result, I think because it's overwriting the previous item in the page field list with the one I'm trying to look at. Is there an error check step that would help me avoid this? I just want to code to skip this item if it doesn't exist in the Pivot Table. Thanks, Todd |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Cycling Through Page Fields
There's sample code here that will check for each item before changing
the page field: http://www.contextures.com/xlPivot09.html Under the heading 'Check for Pivot Items Before Printing' T. Jenkins wrote: I have a routine that cycles through page fields in a pivot table using VB code. For the most part, things work fine, but every now and then, I have an item in my list that doesn't exist in the data generating the pivot table. The code is generating some errors as a result, I think because it's overwriting the previous item in the page field list with the one I'm trying to look at. Is there an error check step that would help me avoid this? I just want to code to skip this item if it doesn't exist in the Pivot Table. Thanks, Todd -- Debra Dalgleish Contextures http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
drop page fields here and drop series fields here | Charts and Charting in Excel | |||
cycling through pivotchart page fields | Excel Programming | |||
Pivot Table Cycling Through Page Fields Automatically | Excel Discussion (Misc queries) | |||
Cycling through form fields | Excel Programming | |||
How To: Page Fields | Excel Programming |