Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Merge- Remove Prefix

Status
Not open for further replies.

bernie10

Technical User
Sep 13, 2004
219
US
Hi everyone,
I have a simple letter that is being generated from a mail merge in Word. One of the names I am using has a prefix ("Mr. John Smith") from the datasource and I need to strip the prefix off ("John Smith").

If this were excel I would do:

=RIGHT(A1,LEN(A1)-FIND(" ",A1))

where A1 is the name that needs to be edited. Can I do something similar within the mail merge?

Thanks,
Collen
 


Hi,

No. Must be done in the source data.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Hi Collen,

You can use field coding to parse dates, times and numeric strings delineated by '+' or '-', or to perform maths to extract portions of numbers, but that's about it. There is no field code support for parsing text.


Cheers
[MS MVP - Word]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top