Design help for showing/hiding rows

Michael Simpson

Board Regular
Jun 21, 2010
At the moment, I'm not after any actual code (though that may well change :)). I'm more after ideas on a best way to solve a problem. I'm an average VBA programmer (amazing what you can find by googling), but one thing I've learnt with VBA/Excel is it's your imagination that is often the limiter. Anyway - to my design problem.

You have a bunch of parent rows where each one could contain one or more child rows. Generally, the user will want to review the parents, and then might want to drill down and review the children. I've come up with a couple of designs at the moment.

All the rows on one sheet, children hidden. Some sort of toggle that shows/hides the children. Question - will you need one toggle for EACH parent, or can you have a general toggle that then interprets where the cursor is and toggles accordingly ? (... and how would you solve the toggle button being, say, on row 1 and the row they want to toggle is a couple of pages down ?)

You have all the parents on one sheet, and the parents/children (all) shown on the second sheet. The user places focus on the parent on sheet 1 and presses "something", whereupon the code performs a "hyperlink" to the correct row on the second sheet. Question - how difficult to build, and what solution to "go back" to the correct parent on the first sheet ?

Michael Simpson

Board Regular
Jun 21, 2010
My immediate thought when I saw your reply

was "Oooh, nice". Thank you Andrew. That seems a much more elegant solution (on a scale of 1-10 as an Excel user, I'm a 0.5).

I assume you can create an outline using VBA programming ?

Forum statistics

Latest member

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...