View Single Post
  #2   Report Post  
Posted to microsoft.public.word.formatting.longdocs
John McGhie [MVP Word, Word Mac] John McGhie [MVP Word, Word Mac] is offline
external usenet poster
 
Posts: 11
Default Hiding "Overflow" Linked Text Box when Empty

Hi Tony:

Ask yourself if you REALLY need to do this with Text Boxes. I would try
very hard to return the answer "No" to that question.

Otherwise, yes, you will need some serious VBA to compute that the text box
needs to overflow, create the second text box if it does, and link it.

It may be a lot simpler to create VBA that simply determins whether the end
of the text is in Text Box A or B, and deletes B if it's empty :-)

Had you thought that maybe having a second empty page is really not such a
bad thing? :-)

Cheers

--

Please reply in the group. Please do NOT email me unless I ask you to.

http://jgmcghie.fastmail.com.au/

John McGhie, Consultant Technical Writer
McGhie Information Engineering Pty Ltd
Sydney, Australia. GMT + 10 Hrs
+61 4 1209 1410,

"Tony Robbins" Tony wrote in message
...
Aloha all,

I am trying to a form for work under Word 2003. The form itself has two
text (A and B) boxes, each of which is linked to an overflow text box (A2
and
B2). If there is too much text in textbox A, I want it to create a
textbox
A2 on page 2 where it continues the data.

Now, simply linking the text boxes will create the effect, except it
leaves
a second page on every form that doesn't need it. Rather than leaving the
linked text box (A2) in, I'd like to make it dynamically created or hidden
unless textbox A has overflowed.

This is slightly more complicated because I want similar behavior from
textbox B and B2.

Any suggestions? Do I need to use VBA for this or is there a simpler
method
I haven't tracked down?

Thanks!
Tony