CorrieAnn Gillen
New Member
I "borrowed" this snippet from online, however I need to alter it so that it only hides rows within my range: A36:A125. I tried changing the Rows.Count parameter within, but that didn't work. Suggestions?
Code:
Sub HideRows()
On Error Resume Next
ltrw = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To ltrw
If Cells(i, 1).Value = 0 Then
Cells(i, 1).EntireRow.Hidden = True
End If
Next i
End Sub
Sub UnhideRows()
On Error Resume Next
ltrw = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To ltrw
If Cells(i, 1).Value = 0 Then
Cells(i, 1).EntireRow.Hidden = False
End If
Next I
End Sub