+ Reply to Thread
Results 1 to 4 of 4

need help with an auto hide/unhide row macro

  1. #1
    Registered User
    Join Date
    12-12-2017
    Location
    wilmington, oh
    MS-Off Ver
    2016
    Posts
    14

    need help with an auto hide/unhide row macro

    Hi all,

    I have a macro written that auto hides/unhides certain rows on certain sheets in my workbook based on a value in another cell on the "cover page" that is derived from a formula. This value changes based upon values of other cells. The particular values for this cell are "Small Scope", "Medium Scope", & "Full Development" as you will see in my macro below. My specific rows will auto hide/unhide based on those 3 values.

    The macro works great, however, the the rows that it hides/unhides are grouped rows and when it unhides the rows, they all expand. Is there a way to achieve the same result and keep my rows collapsed once unhidden?

    I'll put the macro and some screen shots of what im asking.

    This is what I would like. All of the grouped rows collapsed.
    Stage gate want.png

    However, this is what it does when rows are unhidden. It expands all of the rows.
    Stage gate dont want.PNG

    Below is my macro. any help is appreciated. thanks in advance.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: need help with an auto hide/unhide row macro

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  3. #3
    Registered User
    Join Date
    12-12-2017
    Location
    wilmington, oh
    MS-Off Ver
    2016
    Posts
    14

    Re: need help with an auto hide/unhide row macro

    Quote Originally Posted by skywriter View Post
    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc. Additionally, due to how some browsers behave, many of our members cannot see uploaded pictures/images. Please do not take this route.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Skywriter,

    I appreciate you taking the time to look at and respond to my post. If there is a next time however, could you practice a little more tact when responding to forum members? There is no reason to be brash and harsh to a member reaching out to his community for some assistance. If my code and pics(if you can see them), coupled with my description are not enough information, please just ask for more info. Or simply ask me to upload a sample file or the file in particular so that you can practice different coding scenarios if you do not know the answer off of the top of your head. I do not expect anyone to "Re-type" my data and will gladly upload a sample file if need be but my code is fairly simple. These rows hide when this cell has this value. Simple enough. However, these are grouped rows and when they unhide, all of the grouped rows expand whereas I need them to stay collapsed. If at all possible. Thank you and I will upload a file at a later date.

  4. #4
    Registered User
    Join Date
    12-12-2017
    Location
    wilmington, oh
    MS-Off Ver
    2016
    Posts
    14

    Re: need help with an auto hide/unhide row macro

    Sorry for my tardiness in uploading the file. Been crazy busy at work. Here is a sample file with the macro working. Once again, I would like to find out if I can make the rows stay collapsed when unhidden. Thanks for the support.
    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] VBA Auto Hide/unhide row
    By xtremca in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-30-2015, 09:24 PM
  2. Auto Hide / UnHide Rows
    By StudioLETA in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2015, 02:50 PM
  3. Auto hide and Unhide worksheet
    By Poh Kai Siang in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2015, 12:04 PM
  4. Macro/VBA for auto hide unhide rows
    By louvaek in forum Excel Programming / VBA / Macros
    Replies: 53
    Last Post: 11-29-2014, 05:36 PM
  5. [SOLVED] Auto unhide/hide columns
    By FragaGeddon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2012, 05:50 PM
  6. Auto Hide or Unhide rows.
    By Michael S in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-19-2009, 06:04 PM
  7. [SOLVED] Auto hide/Unhide columns
    By Vespaguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-20-2006, 01:40 PM

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