eskimo,
The add-in martindwilson suggested should be able to accomodate what you're looking for. If you want to stick with the macro, I made a slight change to compensate for the comma issue. As for the 255 character limit, I'm not sure what's causing that
Sub tgr()
Dim rngText As Range
Dim arrText As Variant
Dim arrTxtPart As Variant
Dim TextIndex As Long
Dim PartIndex As Long
Set rngText = Range("A2", Cells(Rows.Count, "A").End(xlUp))
arrText = Application.Transpose(rngText.Value)
For TextIndex = 1 To UBound(arrText)
arrTxtPart = Split(Replace(arrText(TextIndex), ",", ""), " ")
For PartIndex = 0 To UBound(arrTxtPart)
If Len(arrTxtPart(PartIndex)) = 7 And IsNumeric(arrTxtPart(PartIndex)) Then arrText(TextIndex) = Replace(arrText(TextIndex), arrTxtPart(PartIndex), "xxxxxxx")
Next PartIndex
Next TextIndex
rngText.Value = Application.Transpose(arrText)
End Sub
Bookmarks