Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2018, 02:52 PM
jeffreybrown jeffreybrown is offline Build paragraphs based on selecting "yes" from a content control Windows Vista Build paragraphs based on selecting "yes" from a content control Office 2007
Expert
Build paragraphs based on selecting "yes" from a content control
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default 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.
Attached Files
File Type: docm First paragraph.docm (22.4 KB, 8 views)
Reply With Quote
  #2  
Old 11-06-2018, 06:49 PM
macropod's Avatar
macropod macropod is offline Build paragraphs based on selecting "yes" from a content control Windows 7 64bit Build paragraphs based on selecting "yes" from a content control Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 11-06-2018, 07:32 PM
jeffreybrown jeffreybrown is offline Build paragraphs based on selecting "yes" from a content control Windows Vista Build paragraphs based on selecting "yes" from a content control Office 2007
Expert
Build paragraphs based on selecting "yes" from a content control
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

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.
Attached Files
File Type: docm First paragraph.docm (32.7 KB, 8 views)
Reply With Quote
  #4  
Old 11-06-2018, 07:53 PM
macropod's Avatar
macropod macropod is offline Build paragraphs based on selecting "yes" from a content control Windows 7 64bit Build paragraphs based on selecting "yes" from a content control Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #5  
Old 11-06-2018, 07:59 PM
jeffreybrown jeffreybrown is offline Build paragraphs based on selecting "yes" from a content control Windows Vista Build paragraphs based on selecting "yes" from a content control Office 2007
Expert
Build paragraphs based on selecting "yes" from a content control
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Again thanks Paul. I will do some more research on formfields.
Reply With Quote
  #6  
Old 11-06-2018, 08:07 PM
macropod's Avatar
macropod macropod is offline Build paragraphs based on selecting "yes" from a content control Windows 7 64bit Build paragraphs based on selecting "yes" from a content control Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See, for example: https://www.msofficeforums.com/word/...html#post46429
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 11-06-2018, 08:31 PM
jeffreybrown jeffreybrown is offline Build paragraphs based on selecting "yes" from a content control Windows Vista Build paragraphs based on selecting "yes" from a content control Office 2007
Expert
Build paragraphs based on selecting "yes" from a content control
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

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?
Reply With Quote
  #8  
Old 11-06-2018, 09:04 PM
macropod's Avatar
macropod macropod is offline Build paragraphs based on selecting "yes" from a content control Windows 7 64bit Build paragraphs based on selecting "yes" from a content control Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by jeffreybrown View Post
I should be able to unprotect different parts or sections of the doc so the summary paragraphs can be updated?
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]
Reply With Quote
  #9  
Old 11-07-2018, 04:02 PM
jeffreybrown jeffreybrown is offline Build paragraphs based on selecting "yes" from a content control Windows Vista Build paragraphs based on selecting "yes" from a content control Office 2007
Expert
Build paragraphs based on selecting "yes" from a content control
 
Join Date: Apr 2016
Posts: 673
jeffreybrown has a spectacular aura aboutjeffreybrown has a spectacular aura about
Default

Hi Paul. Got it all sorted out with the formfields and creating sections. Thanks.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Build paragraphs based on selecting "yes" from a content control 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
Build paragraphs based on selecting "yes" from a content control "Table of content" based on "Normal Style" behavior!!!! Jamal NUMAN Word 4 07-08-2011 04:12 AM
Build paragraphs based on selecting "yes" from a content control 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

Other Forums: Access Forums

All times are GMT -7. The time now is 01:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft