Reply
 
Thread Tools Display Modes
  #1   Report Post  
BLansinger
 
Posts: n/a
Default 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   Report Post  
Greg Maxey
 
Posts: n/a
Default

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   Report Post  
BLansinger
 
Posts: n/a
Default

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   Report Post  
Graham Mayor
 
Posts: n/a
Default

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can autocomplete insert unformatted text into a document? Daiya Mitchell Microsoft Word Help 1 February 22nd 05 02:23 PM
Numbers to appear at the cursor... ~D~ New Users 11 February 1st 05 04:49 AM
Insert, edit and delete text in protected document homeofbonnie Microsoft Word Help 1 January 12th 05 02:31 PM
Word 2003 Insert Text Box Providing Canvas and Text Box s00t00 Microsoft Word Help 1 January 12th 05 02:05 AM
Outline Renee Hendershott Page Layout 2 December 25th 04 02:49 PM


All times are GMT +1. The time now is 02:54 PM.

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"