Excel Macro Trigger creates Subset

Bright01
Bright01 used Ask the Experts™
on
I have a great outline interview Worksheet that EE Pro Martin Liss helped build.  This is a very solid WS that should help people who do interviews.   Right now, if you click the Outline button, it discloses different outline levels.  If you click the black Boxes in Col. C, you will get a cycle for a check, a question mark or an X.  Here is what I'm trying to do;

I would like to see, when you double click the black box, and the box shows a "Check" or "P" with Wingding2, it auto expands by one level.  If you click another box and there is a 3rd level, it will expand to the 3rd level. Click if so it doesn't show a Check (or "P") and it will contract back to the appropriate level.

Keep in mind, this list of questions/text will be at least in the neighborhood of 200+ rows when it is expanded.  You can use Column A as a designator since it equates to a specific "level."

Thank you in advance,

B.
Outline-Dropdown-Trigger.xlsm
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
Let me see what I can do.
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
Can there be more than 3 levels?

And if I double-click cell C8
Before double-click

should it look like this?
After double-clickOr like this?
Or?

Author

Commented:
YES.  If you double click... you get only 1 level down as in your second example.  If you click on the Sub Text A, you go to the next level..... but only if it's there.

B.
CompTIA Network+

Prepare for the CompTIA Network+ exam by learning how to troubleshoot, configure, and manage both wired and wireless networks.

Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
What about me "Can there be more than 3 levels?" question?

Author

Commented:
Interesting Question.   I thought that there may be given changing requirements.  But this is actually a "tree" with 3 levels.  Right now 3 levels is all there is.  I'm trying to keep it simple.... but I leave the option open to add additional levels later.....  So now..  let's stick with 3.  Does that work?

B.
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
Try this workbook. It has a new sheet called "Templates" that could be hidden.
28692258.xlsm

Author

Commented:
Martin,

I'm getting errors on the opening.  

b.
Problem.ppt
Older than dirt
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
Sorry about that. I was working with a copy of the "Architecture_Questions" sheet and modified the Toggle sub in that sheet. I deleted that sheet before I posted the workbook and so the modified code was also deleted. Try this version. Along with the Toggle sub changes I commented out a line in the BeforeDoubleClick event that was causing a problem.
28692258.xlsm

Author

Commented:
Much better!  Almost there.....

However, it should only trigger the outline subgroup if the box is "checked".  Otherwise, it collapses the boxes back. In other words, the statements/questions (Green/Yellow) are only exposed if a check box in the top level (Blue) have been selected as "Checked".  

So, when you clear the entire sheet, you will only see the blue boxes, unless you decide to trigger the "Display" Macro.  Then you will see the entire sheet.

You nailed this one.  I'm going to close this out and open another question to get the second half of this completed.

Thank you very much!   And I hope you will pick up the follow on.

B.

Author

Commented:
Nailed it!

I'm going to ask another Question given it should only trigger the outline subgroup if the box is "checked".  Otherwise, it collapses the boxes back. In other words, the statements/questions (Green/Yellow) are only exposed if a check box in the top level (Blue) have been selected as "Checked".  

So, when you clear the entire sheet, you will only see the blue boxes, unless you decide to trigger the "Display" Macro.  Then you will see the entire sheet.

You nailed this one.  I'm going to close this out and open another question to get the second half of this completed.

Thank you very much!   And I hope you will pick up the follow on.

B.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial