Hi All,
I have the following macro:
And I am going through a long list were it finds several matches.
However I noticed that it replaces the value 416712888271461 correctly but when it comes to a cell with the value 4167128882714610 (so one digit longer being the zero at the end) it does not replace the cell content?
Can someone please explain me what's going on here and how to resolve this?
I have the following macro:
Code:
Sub Tidy2()
Dim Cell As Range
Set TelRange = ActiveWorkbook.ActiveSheet.Columns("A").SpecialCells(xlCellTypeConstants, xlNumbers + xlTextValues)
For Each Cell In TelRange
With Cell
If Left(.Value, 6) = 416712 Then
.Value = 18882714615#
End If
End With
Next Cell
End Sub
And I am going through a long list were it finds several matches.
However I noticed that it replaces the value 416712888271461 correctly but when it comes to a cell with the value 4167128882714610 (so one digit longer being the zero at the end) it does not replace the cell content?
Can someone please explain me what's going on here and how to resolve this?