Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("H1:H100")) Is Nothing Then Exit Sub
Target.EntireRow.Hidden = Target.Value = "Inactive"
End Sub
Public Sub FinIna()
Dim i As Integer
Range("A1").Select
Do While ActiveCell.Address <> Range("I1").Address
For i = 1 To 100
If UCase(Trim(ActiveCell.Offset(i - 1, 0).Value)) = "INACTIVE" Then
Debug.Print (ActiveCell.Offset(i - 1, 0).Value)
Selection.EntireColumn.Hidden = True
End If
Next i
ActiveCell.Offset(0, 1).Select
Loop
End Sub