I'm reluctant that someone will be able to figure this out, but here it goes:
When clicking my listbox items (MultiSelect LisbBox), it populates various calcuated fields in my pivot table. I'm trying to figure out how to Remove and Add my calculated field items when they are selected in the listbox. The code below runs without errors, and it populates the pivot field with the desired calculated fields. However, when I DESELECT the 2nd listbox item, it does not remove the calculated field. If I deselect the 1st listbox item, then ALL of the calculated fields will be removed from the pivottable. How do I modify the code below so that each calculated field is removed individually when it is deselected from the listbox.
Many thanks in advance if someone can solve this!
It looks like different things happen when I move around the position of this line of code:Please Login or Register to view this content.
but I'm not sure if this is the issue.Please Login or Register to view this content.
Bookmarks