Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
making lines disappear and appear in documents
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? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
making lines disappear and appear in documents
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/Customizat...nTheBlanks.htm especially Dian Chapman's series of articles. You may also want to look at http://www.word.mvps.org/FAQs/TblsFl...nesInForms.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 See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome! --------- --------- --------- --------- --------- --------- 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. "tuleino" wrote in message ... 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? |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
making lines disappear and appear in documents
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. "tuleino" wrote in message ... 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? |