+ Reply to Thread
Results 1 to 7 of 7

Hide Row based on Cell Value on Multiple Sheets

  1. #1
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Hide Row based on Cell Value on Multiple Sheets

    I'm after some help with a macro to hide rows where a specific value appears in a column range but on multiple worksheets.

    Some of my worksheets are named AP, BG, CK, DR, EF (there are around 20 more).

    The macro should check H2:H101 of each worksheet and hide the row if it contains value 3.

    Any help much appreciated.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Hide Row based on Cell Value on Multiple Sheets

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Re: Hide Row based on Cell Value on Multiple Sheets

    Thanks for this but it only hides the rows that meet the criteria on one worksheet. Unusually it's not the first worksheet as I would have expected.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Hide Row based on Cell Value on Multiple Sheets

    hi xybadog, option

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Re: Hide Row based on Cell Value on Multiple Sheets

    Quote Originally Posted by watersev View Post
    hi xybadog, option

    Please Login or Register  to view this content.
    Thanks, but I don't really want to have to use an input as the value will always be 3 in rows that I want hidden.

    Out of interest, how is this invoked? I added the code and saved, I ran it but it didn't hide rows as required and when I closed and reopened the workbook nothing happened.

  6. #6
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Re: Hide Row based on Cell Value on Multiple Sheets

    Quote Originally Posted by watersev View Post
    hi xybadog, option

    Please Login or Register  to view this content.
    Thanks, but I don't really want to have to use an input as the value will always be 3 in rows that I want hidden.

    Out of interest, how is this invoked? I added the code and saved, I ran it but it didn't hide rows as required and when I closed and reopened the workbook nothing happened.

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Hide Row based on Cell Value on Multiple Sheets

    Try:

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    07-02-2012
    Location
    UK
    MS-Off Ver
    365/2008
    Posts
    152

    Re: Hide Row based on Cell Value on Multiple Sheets

    This worked. Thanks John.

  9. #9
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Hide Row based on Cell Value on Multiple Sheets

    You're welcome. Glad to help out and thanks for the feedback.

+ 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. Replies: 1
    Last Post: 10-02-2013, 08:08 PM
  2. [SOLVED] hide sheets based on the cell value
    By sknalodz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-24-2013, 01:43 AM
  3. hide row based on cell value in multiple sheets
    By fatpiggy123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2010, 04:21 AM
  4. Hide sheets based on cell value input
    By EdMac in forum Excel General
    Replies: 10
    Last Post: 11-17-2006, 06:01 AM
  5. Hide Certain Sheets based on Cell Data
    By Volsfan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2005, 10:05 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