I have this written and it works to check one column for "", and then hides the row. I want to check the range (E:K) of each row and if they are all blank or "" more specifically, then hide that row. Also I would like to know how to select more than one group of rows for the "i" if it is possible. Eg. (1-18) and (23-30). Thank you for any help.
Code:
Sub Rectangle4_Click()
Dim i As Integer
Application.ScreenUpdating = False
For i = 1 To 18
If Sheets("calendar").Cells(i, "E").Value = "" Then
Rows(i).Hidden = True
End If
Next i
On Error GoTo 0
Application.ScreenUpdating = True
End Sub