Hi,
I am trying to write code which will loop down column "B" and, where the text "example text 12345678" is found, replace the numbers (i.e the last eight characters of the string" with "33344455".
I have tried:
but I get a 'type mismatch' error.
Any ideas?
I am trying to write code which will loop down column "B" and, where the text "example text 12345678" is found, replace the numbers (i.e the last eight characters of the string" with "33344455".
I have tried:
Code:
If InStr(1, Range("B" & i).Value, "3009020201") Then
Range("B" & i).Value = Left(Range("B" & i), Len(Range("B" & i) - 8)) & "12345678"
Any ideas?