Got names in column F, written like: Lennon John Winston.
Column holds headers.
Anyone that got a vba that can run through column F and add comma after the first word?
When name is Lennon-Smith John Winston the comma must be placed like this: "Lennon-Smith, John Winston".
Tried this:
but it adds comma after every word...
Column holds headers.
Anyone that got a vba that can run through column F and add comma after the first word?
When name is Lennon-Smith John Winston the comma must be placed like this: "Lennon-Smith, John Winston".
Tried this:
Code:
Columns("F:F").Select
Selection.Replace What:=" ", Replacement:=", ", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Last edited: