S
Stephen Glynn
I've come across an invaluable article by Dave Rado on the MVP Word site
on "I have a “Name” column which I want to split into “FirstName”,
“LastName” – how can I do it?"
http://word.mvps.org/FAQs/TblsFldsFms/SplitFirstNameLastName.htm
It's too long to summarise here but it's a very handy way of doing this
by converting the column to text, using Find & Replace and some
wildcards and special characters rather than code, and then converting
it back into a table.
Anyway, at one point you need to allow for the possibility that there
may be some middle names or initials in the Name field. To deal with
this you
"select the “Use wildcards” check box in the Find and Replace dialog, and:
In the Find what box type: (<*) ([! ]@)^13
In the Replace with box type: \1^t\2^p
Click Replace All"
This certainly works. It separates out the last word (surname) with a
tab and leaves everything to the left of it separated by spaces.
Since I'm afraid I don't understand wildcards too well I've got no idea
how it works!
Can anyone please enlighten me?
TIA
Steve
on "I have a “Name” column which I want to split into “FirstName”,
“LastName” – how can I do it?"
http://word.mvps.org/FAQs/TblsFldsFms/SplitFirstNameLastName.htm
It's too long to summarise here but it's a very handy way of doing this
by converting the column to text, using Find & Replace and some
wildcards and special characters rather than code, and then converting
it back into a table.
Anyway, at one point you need to allow for the possibility that there
may be some middle names or initials in the Name field. To deal with
this you
"select the “Use wildcards” check box in the Find and Replace dialog, and:
In the Find what box type: (<*) ([! ]@)^13
In the Replace with box type: \1^t\2^p
Click Replace All"
This certainly works. It separates out the last word (surname) with a
tab and leaves everything to the left of it separated by spaces.
Since I'm afraid I don't understand wildcards too well I've got no idea
how it works!
Can anyone please enlighten me?
TIA
Steve