#1
|
|||
|
|||
Build paragraphs based on selecting "yes" from a content control
I have a table which contains eight different criteria with the question, yes or no. If the user should select "Yes", can a paragraph be built under the heading summary? In this case, the user selects "Yes" on, size, color, cost, and wait. Now under summary there are four paragraphs so the user needs to provide some explanations. Also, can the cell with the "Yes" retain a background color such as yellow? I have titled the content controls with the name in the table. |
#2
|
||||
|
||||
See: https://www.msofficeforums.com/word-...html#post46903. Although the example there outputs multiple lines separated by a manual line break, you needn't have those line breaks. Obviously, too, you'd need to modify the code to test which content control is being exited and which content control the output is to go to in each case.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Thank you Paul. I'll play with this to see if I can make it work. Maybe this could work also. I've found a method that seems to take less to implement and might just be what I need. Can you look at this attachment and offer your insight? I attached each of the content controls to an IF statement to return certain results. Might be easier to just have all eight paragraphs present and simple annotate if that section was used or not.
|
#4
|
||||
|
||||
Hi Jeffrey,
Something similar could be done with IF fields, but you'd still need a macro to update them when the content control is exited; that wouldn't be so if you were using formfields, however.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Again thanks Paul. I will do some more research on formfields.
|
#6
|
||||
|
||||
See, for example: https://www.msofficeforums.com/word/...html#post46429
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
I do believe that will work. From what I've read so far, since the formfield requires the doc to be protected, I should be able to unprotect different parts or sections of the doc so the summary paragraphs can be updated?
|
#8
|
||||
|
||||
Correct. If you want to leave part of the document accessible for editing, insert Section breaks either side and leave that Section unprotected when applying the 'filling in forms' protection.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
Hi Paul. Got it all sorted out with the formfields and creating sections. Thanks.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mail Merge Using Rules "IF" to add additional Text Based On Merge Field Content | Alfred | Mail Merge | 2 | 05-23-2017 10:59 PM |
How to edit the "Format" and the "show level" of an EXISTING table of content? | Jamal NUMAN | Word | 2 | 08-14-2011 10:46 AM |
"Table of content" based on "Normal Style" behavior!!!! | Jamal NUMAN | Word | 4 | 07-08-2011 04:12 AM |
How to know the "format" of the "table of content"? | Jamal NUMAN | Word | 2 | 07-08-2011 02:24 AM |
How to have colons (:) in the "Table of content" but to be hidden in the "Heading"? | Jamal NUMAN | Word | 0 | 06-26-2011 04:53 PM |