Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Habitat Calgary Habitat Calgary is offline
external usenet poster
 
Posts: 3
Default Inserting text based on the first character of a field

Can I ask If...Then...Else to insert the word Dear before any preferred
salutation that starts with 'M'?
  #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'?


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
automatically inserting text in a merge field blank field. DrTominRI Mailmerge 2 December 20th 05 06:35 AM
Autofill of Text Form Field based on another Text Form Field Brett Kinross Microsoft Word Help 3 November 24th 05 03:49 AM
text form field in document (based on template) Dan Microsoft Word Help 2 October 19th 05 05:07 PM
update text form field on document based on template Dan Microsoft Word Help 0 October 18th 05 09:09 PM
How do a make a doc save based on a text field? Dbltap Page Layout 5 March 2nd 05 12:44 AM


All times are GMT +1. The time now is 11:45 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"