Fixing a Macro Button

EE Pros,

I have a WS that has a Macro Button for expanding and collapsing a outline form.  In building out several new capabilities, this Macro Button got replicated and from within the code itself, produces additional buttons (on top of each other).  It comes from defining two range names (why?  I don't know) but for some reason it's these range names and their location in the code that is now affecting the ability to have the WS behave correctly.

Code attached,

B.
D--Data-Data-Temp-Copy-of-28820120b.xlsm
Bright01Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
There's currently no code associated with that button. Is it supposed to be associated with Sheet1.button_Click or Sheet1.Expand_Summary?
Martin LissOlder than dirtCommented:
When I associate it with Sheet1.Expand_Summary and collapse the use cases down to just their header rows, clicking it expands the use cases. I don't see any problem.
Bright01Author Commented:
Martin,

You are correct. However, the reason there is no code behind the gray button, is because you are looking at a copy of the button.  If you delete several of them, you will then see a Button 9, Button 8, Button 7.....delete them all until you get down to the original button which does have code behind it.  Now fire the Blue Button and you will see an error.

B.
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

Martin LissOlder than dirtCommented:
OK. The last button is associated with Sheet1.button_Click which protects the sheet at the end and the blue button won't work while the sheet is protected, so either remove the protect/unprotect code from button_click or add it to ToggleDisplay.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bright01Author Commented:
I should have caught that!   ;-)

Thank you!

B.
Bright01Author Commented:
Martin,

I've issued a new question to fix the math in the selected boxes.  Right now if you remove all check marks, the value in the sum cell (bottom of the table) still has a value.  It should read -0-.

Here is the new post.  Hope you will take a look.

http://www.experts-exchange.com/questions/28826919/A-Fix-to-the-Check-Boxes-and-Math.html

Best regards,

B.
Bright01Author Commented:
Oh.... the attached file is slightly updated (no coding changes) ...... I simply changed the button but no code changes except to make the txt in an unselected box darker.  Nice touch!  Thanks for the tip.

B.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.