Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conditional hidden row
I would like to display rows that have a certain condition and are others
that do not have this condition to be hidden. I'm thinking of and IF Statement. IF column b0 OR column c0 Then show row else hide row any suggestions? -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200810/1 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Conditional hidden row
Here is a start for you
Sub tryme() mylast = Cells(Cells.Rows.Count, "A").End(xlUp).Row For j = 1 To mylast If Cells(j, 1) = "a" Or Cells(j, 2) < 20 Then Cells(j, 1).EntireRow.Hidden = True End If Next j End Sub best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "rtwiss via OfficeKB.com" <u46610@uwe wrote in message news:8c576eb9e664f@uwe... I would like to display rows that have a certain condition and are others that do not have this condition to be hidden. I'm thinking of and IF Statement. IF column b0 OR column c0 Then show row else hide row any suggestions? -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200810/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
2007 Worksheet, Hidden Columns, .CSV Format Saves Hidden Column Da | Excel Discussion (Misc queries) | |||
Rows hidden by Autofilter vs hidden by changing the Hidden property | Excel Programming | |||
display hidden rows using conditional formatting | Excel Worksheet Functions | |||
Conditional Format: NOT Hidden Row, Not Locked Cell, No Data in Ce | Excel Programming | |||
Saving hidden data with a worksheet (preferably without using a hidden sheet) | Excel Programming |