I am a very basic VBA user but have the following code which hides rows based on a Yes/No outcome in a particular column:
Private Sub Worksheet_Activate()
StartRow = 10
EndRow = 19
ColNum = 2
For i = StartRow To EndRow
If Cells(i, ColNum).Value <> "Yes" Then
Cells(i, ColNum).EntireRow.Hidden = True
Else
Cells(i, ColNum).EntireRow.Hidden = False
End If
Next i
End Sub
I'm looking to have this refresh after cell A5 is updated.
Any guidance would be greatly appreciated.
Private Sub Worksheet_Activate()
StartRow = 10
EndRow = 19
ColNum = 2
For i = StartRow To EndRow
If Cells(i, ColNum).Value <> "Yes" Then
Cells(i, ColNum).EntireRow.Hidden = True
Else
Cells(i, ColNum).EntireRow.Hidden = False
End If
Next i
End Sub
I'm looking to have this refresh after cell A5 is updated.
Any guidance would be greatly appreciated.