Home |
Search |
Today's Posts |
#1
|
|||
|
|||
Insert a text box based on an if then else code
Can you insert a text box into a word mail merge document simply based on an
if the else statement? I want this text box to only show up for certain individuals. The text box itself contains a daisy chain of if,then,else's. It took me a while to create all the code inside the box & do not want to have to re-do the entire process, if I can help it. Thanks, Brad Lansinger |
#2
|
|||
|
|||
Brad,
Try defining your textbox as an AutoText entry (lets call it Textbox) and then use something like: { IF {Mergefield Name} = "Bill"{AutoText Textbox}"Something else"} -- Greg Maxey/Word MVP See: http://gregmaxey.mvps.org/word_tips.htm For some helpful tips using Word. BLansinger wrote: Can you insert a text box into a word mail merge document simply based on an if the else statement? I want this text box to only show up for certain individuals. The text box itself contains a daisy chain of if,then,else's. It took me a while to create all the code inside the box & do not want to have to re-do the entire process, if I can help it. Thanks, Brad Lansinger |
#3
|
|||
|
|||
Greg: How can I define the text box to include the if,then,else codes I have
already developed? I created a new entry on the autotext list that is called textbox but it simply enters the wrod "textbox". It doesn't draw a text box or (that I can see) allow me to define what I want to insert. Thanks! Brad "Greg Maxey" wrote: Brad, Try defining your textbox as an AutoText entry (lets call it Textbox) and then use something like: { IF {Mergefield Name} = "Bill"{AutoText Textbox}"Something else"} -- Greg Maxey/Word MVP See: http://gregmaxey.mvps.org/word_tips.htm For some helpful tips using Word. BLansinger wrote: Can you insert a text box into a word mail merge document simply based on an if the else statement? I want this text box to only show up for certain individuals. The text box itself contains a daisy chain of if,then,else's. It took me a while to create all the code inside the box & do not want to have to re-do the entire process, if I can help it. Thanks, Brad Lansinger |
#4
|
|||
|
|||
You are putting the cart before the horse. You start by creating the text
box that you want to insert, then save that text box as an autocorrect entry. You can then use the conditional field in the document (not in the text box) to insert an autotext field to place the text box. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org BLansinger wrote: Greg: How can I define the text box to include the if,then,else codes I have already developed? I created a new entry on the autotext list that is called textbox but it simply enters the wrod "textbox". It doesn't draw a text box or (that I can see) allow me to define what I want to insert. Thanks! Brad "Greg Maxey" wrote: Brad, Try defining your textbox as an AutoText entry (lets call it Textbox) and then use something like: { IF {Mergefield Name} = "Bill"{AutoText Textbox}"Something else"} -- Greg Maxey/Word MVP See: http://gregmaxey.mvps.org/word_tips.htm For some helpful tips using Word. BLansinger wrote: Can you insert a text box into a word mail merge document simply based on an if the else statement? I want this text box to only show up for certain individuals. The text box itself contains a daisy chain of if,then,else's. It took me a while to create all the code inside the box & do not want to have to re-do the entire process, if I can help it. Thanks, Brad Lansinger |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can autocomplete insert unformatted text into a document? | Microsoft Word Help | |||
Numbers to appear at the cursor... | New Users | |||
Insert, edit and delete text in protected document | Microsoft Word Help | |||
Word 2003 Insert Text Box Providing Canvas and Text Box | Microsoft Word Help | |||
Outline | Page Layout |