I'm trying to determine the name of the pivot table where the activecell is located - or if the active cell is not loacated in/on a pivot table.
The reason being that I have certain code that alters pivot tables and I'd like the code to work only on the active pivot table (we usually have several pivots on the same tab). So if the user has the cursor in a pivot the code will alter only the one they are working with. I have been able to identify whether or not the cursor is in a pivot - but I can't determine the name of that pivot...
I'd appreciate any suggestions!
The reason being that I have certain code that alters pivot tables and I'd like the code to work only on the active pivot table (we usually have several pivots on the same tab). So if the user has the cursor in a pivot the code will alter only the one they are working with. I have been able to identify whether or not the cursor is in a pivot - but I can't determine the name of that pivot...
I'd appreciate any suggestions!