Hide row based on values in two different columns
Posted by Adrae on December 06, 2001 2:24 PM
I want to set up a macro that will hide rows if column D = "" AND column Q = 0. Is there any way I can turn the code below to incorporate the second condition (column Q)
Application.ScreenUpdating = False
Sheets("Notes").Select
Dim cell as string
With Range("D12:D800")
.EntireRow.Hidden = False
For Each cell In Range("D12:D" & ActiveCell.SpecialCells(xlCellTypeLastCell).Row)
Select Case cell.Value
Case Is = ""
cell.EntireRow.Hidden = True
End Select
Next cell
End With
Thanks :-)