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

WilliamPHII

New Member
Joined
Aug 30, 2018
Messages
11
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.
 

WilliamPHII

New Member
Joined
Aug 30, 2018
Messages
11
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...
 

Forum statistics

Threads
1,081,981
Messages
5,362,535
Members
400,679
Latest member
alecalec202

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top