+ Reply to Thread
Results 1 to 1 of 1

[HELP] Macro to Hide/Unhide rows based on Header Styles

  1. #1
    Registered User
    Join Date
    08-07-2014
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    5

    [HELP] Macro to Hide/Unhide rows based on Header Styles

    Hi,

    I'm trying to edit a macro to hide/unhide rows based on header styles.

    What I currently have is a Show and Hide button on every sheet in the workbook that performs the below routine. What the routine does is if every single row is visible and the hide button is pressed once, then it hides everything except Header 1 and Header 2, and if the hide button is pressed the 2nd time, then it hides everything except Header 1. Similarly, it does the same thing when Show button is pressed.

    What I'm trying to achieve if have a Header 3 in there as well. So if every single row is visible and the Hide button is pressed once, then it hides everything except Header 1, Header 2 and Header 3, if the Hide Button is pressed the 2nd time, then hides everything except Header 1 and Header 2 and when pressed the 3rd time, hides everything except Header 1.

    Could someone please help me amend this code, or if there is a better way to execute what I'm trying to achieve, then I'm all ears!

    Thank you for your help!

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to unhide & hide rows based on column value
    By qvfr034 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-15-2020, 03:00 PM
  2. Macro for Hide Or Unhide Rows based on Cell Text
    By Neilesh Kumar in forum Excel General
    Replies: 3
    Last Post: 04-14-2017, 08:36 AM
  3. Macro to Hide/Unhide Rows Based on Cell Value
    By mlancaster24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2015, 01:20 PM
  4. [SOLVED] Macro to Hide/Unhide rows based on the result of a formula
    By c850b in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2015, 12:52 PM
  5. [SOLVED] Macro to Automatically Hide/Unhide Rows Based on Checkbox
    By bga10s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2014, 07:32 PM
  6. simple macro to hide or unhide rows based on a cell value
    By Russ Fuquay in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-19-2013, 06:32 PM
  7. Macro to Hide/Unhide Multiple Rows Based on Cell Value
    By mbp727 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 11:12 AM

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