View Single Post
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Inserting text based on the first character of a field

Try

{ IF "{ MERGEFIELD myfield \*Upper }" = "M*" "Dear " "" }{ MERGEFIELD
myfield }

(You can use various types of field instead of { MERGEFIELD myfield }
depending on what you need). All the {} need to be the special field code
braces that you can insert using ctrl-F9.

--
Peter Jamieson
http://tips.pjmsn.me.uk

"Habitat Calgary" wrote in
message ...
Can I ask If...Then...Else to insert the word Dear before any preferred
salutation that starts with 'M'?