VBA to allow use of Expand/Collapse button on Pivot Chart, but Disable all Formatting Selection

WilliamPHII

New Member
Joined
Aug 30, 2018
Messages
20
Hi! I have an obscure request. I do this thing where I like to use a pivot chart (with the expand/collapse button) as a fast way to "expand all" or "collapse all" for a related pivot table. Really, all I need is the Expand/Collapse button from the chart, so I always shrink the chart so I can just see the expand/collapse buttons.

The thing is, whenever I go (or a client goes) to select the "Expand/Collapse" buttons, the whole chart selects, and those goofy paint and format selections appear beside my chart (I'm talking about the chart with the expand/collapse buttons here, not the pivot table itself.) It's annoying, and furthermore, the client could accidentally move the whole thing...

You can lock the whole chart using protect object, but then the "expand/collapse" buttons don't work. Is there anyway to lock the chart AND still use those handy buttons??!

Thanks for your help.

William

P.S. I don't understand VBA, but thought maybe I could put in the code, if it was simple.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hello, apparently this is not possible? Anyone out there with VBA know-how that could help me? The chart doesn't need to be locked... I just don't want whoever opens the file to get those formatting options or have the chart turn on re-size mode when they hit the expand/collapse buttons...
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,121
Members
452,381
Latest member
Nova88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top