I have the following macro that works perfectly if I run the macro from sheet3, but if I run it from a sheet called macro, I does not delete the rows containing zeroes where Col B & C are zeo
Please check & advise
Please check & advise
Code:
Sub Delete_Zero_Values()
Dim LR As Long, i As Long
With Sheets(3)
.Application.ScreenUpdating = False
LR = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = LR To 2 Step -1
If .Cells(i, 2) = 0 And .Cells(i, 3) = 0 Then
Rows(i).Delete
End If
Next i
.Application.ScreenUpdating = True
End With
End Sub