Hi All,
I have been trying to look for a code to hide/unhide resignees on a click. I found a code but it only hide resignees but wouldn't show resignees upon clicking button again.
This is what I have:
Appreciate any help! Thanks in advance!!
I have been trying to look for a code to hide/unhide resignees on a click. I found a code but it only hide resignees but wouldn't show resignees upon clicking button again.
This is what I have:
VBA Code:
Public Sub HideResignee()
Dim cell As Range, unionRng As Range
For Each cell In ActiveSheet.Range("CX14:CX1013")
If cell.Value = "Resignee" Then
If Not unionRng Is Nothing Then
Set unionRng = Union(unionRng, cell)
Else
Set unionRng = cell
End If
End If
Next
If Not unionRng Is Nothing Then unionRng.EntireRow.Hidden = True
End Sub
Appreciate any help! Thanks in advance!!