A
Al
What I'm trying to achieve is the automatic hiding of entire rows if the
value of a cell, in this case in column B, is < 1. The below example
works...row 6 is hidden.
Sub hide_row()
If Range("B6").Value < 1 Then Range("B6").EntireRow.Hidden = True
End Sub
But when I try to impose this upon a range of column B, then, alas, not the
desired result!
If Range("B6,B9").Value < 1 Then Range("B6,B9").EntireRow.Hidden = True
Can anyone point me in the right direction? Thanks in advance!
Al
value of a cell, in this case in column B, is < 1. The below example
works...row 6 is hidden.
Sub hide_row()
If Range("B6").Value < 1 Then Range("B6").EntireRow.Hidden = True
End Sub
But when I try to impose this upon a range of column B, then, alas, not the
desired result!
If Range("B6,B9").Value < 1 Then Range("B6,B9").EntireRow.Hidden = True
Can anyone point me in the right direction? Thanks in advance!
Al