Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / August 2006

Tip: Looking for answers? Try searching our database.

Mail Merge Field Code Alternative

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
homes747 - 14 Aug 2006 22:31 GMT
I know how to program field codes based on mail merge data, but I have a
problem in that text strings in field codes appear to be limited to a certain
number of characters (255 perhaps).  Is there an alternative to simply typing
in the text you need in the field code itself?

For example, in an offer letter, if an employee is receiving relocation
assistance, they should receive two paragraphs of information (more then Word
will allow you to put in a field code text string).  Is there any other way
to work the if/then in there, so I don't just have to delete the two
paragraphs for all individuals who aren't eligible.

Thanks,
Morgan
Doug Robbins - Word MVP - 15 Aug 2006 07:52 GMT
Use an INCLUDETEXT field.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I know how to program field codes based on mail merge data, but I have a
> problem in that text strings in field codes appear to be limited to a
[quoted text clipped - 13 lines]
> Thanks,
> Morgan
Graham Mayor - 15 Aug 2006 08:00 GMT
Use an includetext field or an autotext field to insert however much data
you like.
eg
{IF {Mergefield RelocationAssistance} = "True" "{IncludeText
"c:\\path\\docname.doc"}"}

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

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

> I know how to program field codes based on mail merge data, but I
> have a problem in that text strings in field codes appear to be
[quoted text clipped - 11 lines]
> Thanks,
> Morgan
homes747 - 15 Aug 2006 15:54 GMT
Graham,

Thanks for the tip, but I'm still having a little problem.  In the example
below, I want the if statement to look up whether or not someone's STI Level
is blank.  If it's not blank, then I want them to includetext.  If it is
blank, then I want it to stay blank.  Here's what I wrote:

{ IF { MERGEFIELD STILevel } <> "" "{ IncludeText
"\\Usrtnac02\hr-recruiting$\\HR Database\\Offer Data Text - Sign-on, Relo,
SIP, STI.doc" ShortTermIncentive }"  "" }

However, it just displays the text MERGEFIELD.  As you can see, I have
several text fields that I want this to work with housed in a single Word
document separated by bookmarks.  Can you help?

Morgan

> Use an includetext field or an autotext field to insert however much data
> you like.
[quoted text clipped - 17 lines]
> > Thanks,
> > Morgan
Doug Robbins - Word MVP - 15 Aug 2006 17:21 GMT
Did you use Ctrl+F9 to insert each pair of field delimiters { }?  You cannot
just type them in using the keys that look like that on the keyboard.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Graham,
>
[quoted text clipped - 35 lines]
>> > Thanks,
>> > Morgan
homes747 - 15 Aug 2006 17:17 GMT
I figured out that I have to use Ctrl-F9 to place the brackets, but now I'm
getting a message that states "Error! Not a valid file name."

Any thoughts?

Morgan

> Use an includetext field or an autotext field to insert however much data
> you like.
[quoted text clipped - 17 lines]
> > Thanks,
> > Morgan
Doug Robbins - Word MVP - 15 Aug 2006 20:15 GMT
Get you include text field working outside of the mailmerge environment.  If
the error message still says that the filename is invalid, you will have to
do something to get a valid filename.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I figured out that I have to use Ctrl-F9 to place the brackets, but now I'm
> getting a message that states "Error! Not a valid file name."
[quoted text clipped - 24 lines]
>> > Thanks,
>> > Morgan
homes747 - 15 Aug 2006 21:34 GMT
Doug,

Thanks.  It appears that the problem is the fact that I'm trying to "link"
to a document on a shared drive.   When I did everything the same, but moved
the file to my C: drive, it worked fine.

I'll have to find another solution.

Morgan

> Get you include text field working outside of the mailmerge environment.  If
> the error message still says that the filename is invalid, you will have to
[quoted text clipped - 28 lines]
> >> > Thanks,
> >> > Morgan
Doug Robbins - Word MVP - 16 Aug 2006 04:32 GMT
Not so much the shared drive as the way to which it is being referred.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

> Doug,
>
[quoted text clipped - 45 lines]
>> >> > Thanks,
>> >> > Morgan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.