Results 1 to 6 of 6

How to expand and collapse (unhide and hide) rows in a tree like structure

Threaded View

  1. #1
    Registered User
    Join Date
    02-11-2013
    Location
    Perth, Western Australia
    MS-Off Ver
    Excel 2010
    Posts
    14

    How to expand and collapse (unhide and hide) rows in a tree like structure

    Dear forum

    Please see my attached spreadsheet. I have a tree like structure with three tiers of branches that I want end users to be able to collapse and expand by clicking on cells marked “-“ and “+”. I have in mind the code that would work, but I lack the knowledge to draft it. I thought a solution would be to run a SelectionChange procedure that would, if the collapse symbol “-“ is clicked, hide all rows starting from the next row to the row in which I would put a text string, eg “stop” in same column below the collapse ”-“ symbol. That way I could add new rows of data and still have the procedure work. At the moment I have coded a very inflexible series of macros linked to static cells. I am aware of Excel's built in tree structure functionality, but I dont like the look of it, and it isnt quite suited to what I need.

    As always any assistance would be greatly appreciated.

    Scott N
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1