+ Reply to Thread
Results 1 to 2 of 2

Using a Checkbox to Hide Rows based on Cell Value

  1. #1
    Registered User
    Join Date
    07-19-2018
    Location
    UK
    MS-Off Ver
    Office Pro 10
    Posts
    3

    Using a Checkbox to Hide Rows based on Cell Value

    Hi all

    I've got a spreadsheet that I'm using a checkbox to hide rows based on whether the checkbox is checked or not. I've got it to work if I specify which rows the condition relates to.

    However, I'd like to turn it up a notch, and specify the whole sheet as a range, and hide all rows which contain a predetermined text value in a specified column.

    Here's the current code:

    Please Login or Register  to view this content.
    This works fine, but relies on a specified range. I've tried lots of ways of doing this the alternative way, but can't achieve what I want

    Essentially, when checkbox 1 is checked, I want all rows which contain "string" in column K to be hidden.

    Any help would be much appreciated!!

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: Using a Checkbox to Hide Rows based on Cell Value

    Try something like this:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

+ 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 column data using checkbox
    By ricklberry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2015, 11:39 AM
  2. Userform/checkbox hide/unhide rows based on cell value
    By MOHAMMESALMAN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2015, 03:17 AM
  3. Hide rows based on userform checkbox
    By rodrignj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-21-2015, 05:38 AM
  4. [SOLVED] User form/checkbox hide/unhide rows based on cell value
    By ldonis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2014, 11:35 AM
  5. [SOLVED] Checkbox VBA - Hide/Unhide Rows and/or Columns based on cell values
    By gravy258 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-21-2013, 05:39 PM
  6. Macro cannot hide rows based on cell linked to checkbox
    By fernaldd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2009, 11:46 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