Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Fry Fry is offline
external usenet poster
 
Posts: 2
Default Extracting surname and initials from string using formula

Morning All,

I have a Word document which, via DDE, links to our database. Through this
I'm extracting a name field which as an example, gives you 'Mr John James
Smith'; however, I'd like to extract from this string 'Mr J J Smith' and
'Smith'. Can anyone help please?

Kind regards,
Fry
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Extracting surname and initials from string using formula

It can't be done with fields as part of a merge. You will have to do this in
your data source.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Fry wrote:
Morning All,

I have a Word document which, via DDE, links to our database. Through
this I'm extracting a name field which as an example, gives you 'Mr
John James Smith'; however, I'd like to extract from this string 'Mr
J J Smith' and 'Smith'. Can anyone help please?

Kind regards,
Fry



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Fry Fry is offline
external usenet poster
 
Posts: 2
Default Extracting surname and initials from string using formula

Dammit! Thanks for the swift response, Graham.

"Graham Mayor" wrote:

It can't be done with fields as part of a merge. You will have to do this in
your data source.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org


Fry wrote:
Morning All,

I have a Word document which, via DDE, links to our database. Through
this I'm extracting a name field which as an example, gives you 'Mr
John James Smith'; however, I'd like to extract from this string 'Mr
J J Smith' and 'Smith'. Can anyone help please?

Kind regards,
Fry




Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Title Forename Surname SSwan Mailmerge 2 July 17th 07 10:10 AM
How do I get my initials andname in comments? VTZsky Microsoft Word Help 5 February 17th 07 01:56 PM
how to align caption of formula right whereas formula itself left Martin van Leeuwen Microsoft Word Help 1 October 22nd 05 06:39 AM
How can I keep initials and surname together? southerleigh Microsoft Word Help 1 July 19th 05 06:34 PM
How to get contact list when creating envelope address in surname La Durande Microsoft Word Help 1 July 8th 05 03:44 PM


All times are GMT +1. The time now is 12:28 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"