I have written code to clear zeroes in Col A to C
I get a type mismatch when running the code and the following code is highlighted
See full code below
It would be appreciated if someone could amend my code
I get a type mismatch when running the code and the following code is highlighted
Code:
If .Cells(i, 1).Resize(, 2) = 0 Then
See full code below
Code:
Sub clear_Zero_Values()
With Sheets(1)
Dim lr As Long
Dim i As Long
lr = .Cells(.Rows.Count, "A").End(xlUp).Row
For i = lr To 1 Step -1
If .Cells(i, 1).Resize(, 2) = 0 Then
Cells(i, 1).Resize(, 2).ClearContents
End If
Next i
End With
End Sub
It would be appreciated if someone could amend my code
Last edited: