Dim myRng As Range
Dim myCell As Range
Dim rngHide As Range
If Range("B63").Value = True Then
Set myRng = Range("C4,C5,C6,C7,C8,C9,C10,C12,C13,C14,C15,C16,C17,C18,C19,C21,C22,C23,C24,C25,C26,C28,C29,C30,C31,C32,C33,C34,C35,C37,C38,C40,C41,C42,C43,C44,C45,C46,C48,C49,C51,C52,C53,C54,C55,C56,C57,C59,C60,C61")
For Each myCell In myRng.Cells
If myCell.Value = "" Then
If rngHide Is Nothing Then
Set rngHide = myCell
Else
Set rngHide = Union(rngHide, myCell.EntireRow)
End If
End If
Next myCell
Else
Range("C1:C65536").EntireRow.Hidden = False
End If
If Not rngHide Is Nothing Then
rngHide.EntireRow.Hidden = True
End If
Bookmarks