+ Reply to Thread
Results 1 to 4 of 4

Hide multiple rows based on a merged cell text value

  1. #1
    Registered User
    Join Date
    03-02-2016
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    6

    Hide multiple rows based on a merged cell text value

    Hi,

    I have attached a template spreadsheet (See Tab 'IDF Closet - Rack 1') of what I am trying to accomplish.

    I am looking for the correct VBA code so that whenever you click on the button that says 'Hide Empty Panel' it will look in Column A for any cell that has the word Empty in it and hide that entire row.

    Two issue I am having:
    1) The code will not work unless it is an exact match with the word 'Empty' ie) if in the cell it says 'empty' or 'Empty Panel' it will not work.
    2) When I put just the word 'Empty' in the Merged Cell, only the top cell will hide.

    Any suggestions??
    PS: I am new to VBA.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Hide multiple rows based on a merged cell text value

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    03-02-2016
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    6

    Re: Hide multiple rows based on a merged cell text value

    This worked! I just had to change +5 to +4 due to it hiding too many rows. Thanks!!

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Hide multiple rows based on a merged cell text value

    You are very welcome.

+ 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. HIDE/UNHIDE Rows based on cell value in multiple sheets.
    By yatin1964 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2015, 12:29 AM
  2. [SOLVED] Formula to copy text from multiple rows in a column to one merged cell
    By KClem in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-03-2015, 03:14 PM
  3. Hide Rows Based on Text in Cell
    By jgray in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2014, 02:13 AM
  4. [SOLVED] Macro to Show/Hide Rows Based on Text in Cell
    By HCopeland3 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2014, 03:56 PM
  5. Hide rows based on multiple ranges not containing certain value of referenced cell
    By markreisberg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 05:26 PM
  6. hide/unhide rows based on multiple cell values
    By saninmelbourne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2012, 06:45 PM
  7. Help: Code to hide multiple rows based on different cell values
    By swamy156 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-24-2012, 04:35 AM

Tags for this Thread

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