Hello,
This is probably very easy but I'm wrecking my mind on it.
I have a range of rows and want to hide/show some of them based on the value contained in one of the columns. I'm currently using the following code:
This is fine to keep only the value "C" on the column C but the problem is if I want to keep more than one value unhiden. I tried separating the values by a comma "C,R" and sticking anothe line below the IF (If cl <> "R" Then cl.EntireRow.Hidden = True) and, of course, it will hide everything.
I already played a "bit" changing between True and False but to no avail. I wanted to keep this code, or something faster than it, because I also tried the
but it's very slow as it evaluates cell by cell.
Alternatively, is there a way to build a form with checkboxes so I could check the boxes I want to hide/unhide?
Much appreciated!
Alternatively
Bookmarks