Hi, I've got the below code to behave as expected, but I'd like the loop to skip pre determined rows if its possible.
Thanks in adavance
Code:
Sub HidingRowsWhenBlank()
Dim r 'row
For r = 4 To 62 'skip rows 20 to 31 and rows 41 to 52
If WorksheetFunction.CountA(Range((Cells(r, 3)), (Cells(r, 33)))) = 0 Then
Rows(r).Select
Selection.EntireRow.Hidden = True
End If
Next r
End Sub
Thanks in adavance