automate hide row
Private Sub Worksheet_Change(ByVal Target As Range)
Const WS_RANGE As String = "H:H" '<=== change to suit
If Not Intersect(Target, Me.Range(WS_RANGE)) Is Nothing Then
With Target
Me.Rows(.Row).Hidden = .Value = 0
End With
End If
End Sub
'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.
--
__________________________________
HTH
Bob
"Nicole" wrote in message
...
Is there a formula i can set to automate hiding a row when a
particular cell returns a zero value?
|