Try
Sub test()
Dim a, i As Long, m As Object, txt1 As String, txt2 As String
With Range("d1", Range("d" & Rows.Count).End(xlUp)).Resize(, 2)
a = .Value
With CreateObject("VBScript.RegExp")
.Global = True: .MultiLine = True
.Pattern = "^((\d{3}-){2}\d{4})\b *(.*)$"
For i = 2 To UBound(a, 1)
For Each m In .Execute(a(i, 1))
txt1 = txt1 & IIf(txt1 <> "", vbLf, "") & m.submatches(0)
txt2 = txt2 & IIf(txt2 <> "", vbLf, "") & m.submatches(2)
Next
a(i, 1) = txt1: txt1 = ""
a(i, 2) = txt2: txt2 = ""
Next
End With
.Value = a
End With
End Sub
Bookmarks