View Single Post
 
Old 02-16-2013, 01:39 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,383
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Concertina,

This can be done by combining IF fields and INCLUDETEXT fields with your MERGEFIELDS, but you can just as easily do it without the separate files or the INCLUDETEXT fields you need to access them. Instead, you can have a series if IF fields that test the VariableLetter MERGEFIELD thus:
{IF{MERGEFIELD VariableLetter}= 1 "Text for VariableLetter1"}{IF{MERGEFIELD VariableLetter}= 2 "Text for VariableLetter2"}
... {IF{MERGEFIELD VariableLetter}= 10 "Text for VariableLetter10"}

Note: The field brace pairs (ie '{ }') for the above example are created in the body of the document via Ctrl-F9 (Cmd-F9 on a Mac) - you can't simply type them or copy & paste them from this message.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote