making lines disappear and appear in documents

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i'm creating word templates at my workplace.

i'm looking for a way to make sentences appear and disappear based on the
selections of the person who is filling the word template.

for example, there's a sentence which requires an answer "yes" or "no" from
a drop down menu. if the user answers yes an another sentence will be shown
on the next line. if he answers no the sentence wll not be shown and neither
will be the line it would be if he chose yes.

what would be the best way to do that kind of trick?
 
You would use an IF field in response to a REF field. You would have your
answers coded to calculate on exit. While you may indeed have a template,
what you are talking about is what Word calls an "online form." Such forms
can be templates or documents.
http://addbalance.com/usersguide/templates.htm For more about online forms,
follow the links at http://addbalance.com/word/wordwebresources.htm#Forms or
http://word.mvps.org/FAQs/Customization/FillinTheBlanks.htm especially Dian
Chapman's series of articles. You may also want to look at
http://www.word.mvps.org/FAQs/TblsFldsFms/LinesInForms.htm.

Hope this helps,
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Bookmark each of the sentences to be shown or hidden. Add a macro that adds
on the selection (for yes/no, a pair of radio buttons or a single checkbox
are reasonable alternatives to a drop-down). The macro reads the relevant
bookmark from the yes/no control Tag, then sets the bookmark range
font.hidden = true/false.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top