+ Reply to Thread
Results 1 to 3 of 3

Down and up button to unhide or hide rows

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Down and up button to unhide or hide rows

    Hi,
    I like to click a "down" button (image) to unhide the rows, down button will switch to "up" button and text will be changed.
    To unhide the rows, click "up" button then text will change to a different text.

    Please advise. Thanks of your help.

  2. #2
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Down and up button to unhide or hide rows

    My opinion (and it's worth what you paid for it):

    I think you're going to have a tough time with the route you have chosen. MS provides both form and active x controls to function adequately in scenarios such as these. An ActiveX togglebutton, for example, is perfect for this. However, you will lose your preferred formatting.

    I could be wrong, and often am, but under the scenario you describe, you will have to have both pictures (the orb/up, orb/down) placed out of sight, called and positioned upon worksheet activation, have a boolean trigger somewhere to determine the state (hidden or unhidden) of the rows, apply the appropriate macro, re-call the opposing picture, and re-apply the opposing code functionality for use when user wants to invoke the alternate environment.

    Feels heavy. You could use a togglebutton with 10 or so lines of code behind it and you would be on to the next task.

    Again, my opinion. Good luck.
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  3. #3
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Down and up button to unhide or hide rows

    Thanks for the reply. I have seen this was done in HTML. I could use the "group" with plus sign on the far left of vertical bar. I do not like the looks.
    Worst case I may use fonts liked triangles instead of down and up bottons (pictures); if that works. But I need to click the same cell to change the
    triangle angles back and fore.

    Thanks

+ Reply to Thread

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