I wrote some code for a ListBox that aims at adding/removing corresponding PivotFields that are clicked within a ListBox. For example, when VOL 1 is selected in the ListBox, I want my PivotTable to add the VOL 1 PivotField item. If VOL 1 is deselected in the ListBox, I want my PivotTable to remove the VOL 1 PivotField item. VOL 1 is ListBox count item '0' and I will add additional ListBox items after I can get one to work. Here's my code:
I get the following errors:Please Login or Register to view this content.
Upon ListBox item selection: PivotTable field name already exists
Upon ListBox item deselection: Unable to get the PivoFields property of the PivotTable class
I'm sure this isn't a very difficult proplem to solve, but I have been unable to figure it out! Any assistance would be greatly appreciated!
Bookmarks