In that case, it shouldn't matter that the last two characters may appear in more than one location (there is still one character not accounted for); what matters is that the overall string being searched for is unique.
Try replacing '.Cells(i, 2).Value' with 'Right(.Cells(i, 2).Value,8)'
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|