Originally Posted by
Andy Pope
The pivotchange event would be in the sheet object that the pivot table is on.
As you have your pivotchart on a chart sheet you can use the change event of the chart.
Right click chart tab and pick View Code. Paste the following
Wow thank you so much for this! I understand what's the code is doing based on my research on the InStr function. I also want to add a primary and secondary label to the vertical access, but I am getting a runtime error 424, object required (red line). Building on your code I've added the following:
It's my understanding that the code within the With Loop all belong to the same object, ActiveChart, so I don't know why I get the error.
Bookmarks