Hello all,
Still on Excel 2003
My macro is only deleting some of the rows and I dont know why. Note the I have the formating set to currency in M9:M44.
Sub Rectangle7_Click()
ActiveSheet.Unprotect
Dim x As Range
Dim y As Range
Set y = Range("M29:M44")
Application.ScreenUpdating = False
For Each x In y
If x.Value = "0" Then
x.EntireRow.Delete
End If
Next x
ActiveSheet.Protect
End Sub
Any help would be appreciated.
Thanks,
Eric from PA
Still on Excel 2003
My macro is only deleting some of the rows and I dont know why. Note the I have the formating set to currency in M9:M44.
Sub Rectangle7_Click()
ActiveSheet.Unprotect
Dim x As Range
Dim y As Range
Set y = Range("M29:M44")
Application.ScreenUpdating = False
For Each x In y
If x.Value = "0" Then
x.EntireRow.Delete
End If
Next x
ActiveSheet.Protect
End Sub
Any help would be appreciated.
Thanks,
Eric from PA