hi
i have the below code
for some reason its not clearing numbers that are negative i would like it to clear both
thanks
i have the below code
VBA Code:
Sub clearcrfromcell()
Dim Num As String, V As Variant, Rng As Range
Num = InputBox("What number do you want to clear?")
For Each V In Split(Num, "-")
Columns("D").Replace V, "", xlWhole, , , , False, False
On Error Resume Next
For Each Rng In Columns("D").SpecialCells(xlBlanks).Areas
Rng.Offset(, 1).Formula = "=" & Rng.Offset(, -1).Address(0, 0)
Rng.Value = 0
Next
Next
end sub
for some reason its not clearing numbers that are negative i would like it to clear both
thanks