R
Rpettis31
I am trying to remove the leading zeros from a column of values, the code
below works but it also seems to be removing the ending zeros as well.
I tried this which does not workResult1 = Replace(Left(Cells(x, 2), "00", ""))
here is my code.
For x = 2 To 4000
Result1 = Replace(Cells(x, 2), "00", "")
Cells(x, 2) = Result1
Next x
below works but it also seems to be removing the ending zeros as well.
I tried this which does not workResult1 = Replace(Left(Cells(x, 2), "00", ""))
here is my code.
For x = 2 To 4000
Result1 = Replace(Cells(x, 2), "00", "")
Cells(x, 2) = Result1
Next x