M
Mike
I am having difficulty hiding rows with a zero sum value because I have a
break in the sequence. In other words, I'd like to hide the following rows
C8:C88 and C106: C180, but because there is a break in the sequence I am not
sure how to re-write the below Macro. Any assistance would be appreciated.
Sub HideZero()
On Error Resume Next
With Range("D2584")
..EntireRow.Hidden = False
For i = 1 To .Rows.Count
If WorksheetFunction.Sum(.Rows(i)) = 0 Then
..Rows(i).EntireRow.Hidden = True
End If
Next i
End With
End Sub
break in the sequence. In other words, I'd like to hide the following rows
C8:C88 and C106: C180, but because there is a break in the sequence I am not
sure how to re-write the below Macro. Any assistance would be appreciated.
Sub HideZero()
On Error Resume Next
With Range("D2584")
..EntireRow.Hidden = False
For i = 1 To .Rows.Count
If WorksheetFunction.Sum(.Rows(i)) = 0 Then
..Rows(i).EntireRow.Hidden = True
End If
Next i
End With
End Sub