Dear All,
We want to create a VBA that can hide and unhide cell base on multiple criteria but the code below just hide only one criteria and it also cannot unhide the cell back. Please help me.
We want to create a VBA that can hide and unhide cell base on multiple criteria but the code below just hide only one criteria and it also cannot unhide the cell back. Please help me.
Code:
Set myrange = Range("B:B")
For Each cell In myrange
If cell <> "" Then
If cell.Value = "AAAAA" Then
cell.EntireRow.Hidden = True
End If
End If
Next cell