I would try to solve this without VBA. Just select this space and replace (don't change anything) on this sheet that you are trying to get rid of these spaces.
If you really want to use VBA, I believe that you can select the first character
strSpace = left(range("A1").Value,1)
and use the replace function in VBA in the same way
Range("A1").Value = Replace(Range("A1").Value, strSpace, "")
or
for each cell in selection.cells
cell.value = replace(cell.value, strSpace, "")
next
Marek source
share