PDA

View Full Version : WORD DYNAMIC CONTENT & PARAGRAPH CONFIGURATION



acolussi
07-20-2018, 02:21 AM
Hi to all this nice forum.
I'd like to learn how to dynamically select conditional paragraph for a multi-purpose Word file.
I need to prepare a Word sheet, single file, with different configurations to select upon drop-down menu or by radio-buttons.
Of course the drop-down or radio buttons for the different configurations I don't want them to show or print on my Word file.
My word file has also a dynamic table of content which I could update once selected the specific configuration of my file, so after the Word is in his final layout.

Could I use some tags to identify the different paragraphs? Maybe I can indicate with <> the beginning and end of a specific configuration, so using tags and tags names... but I don't know them how to pilot the different paragraphs to be shown by means of drop-down selection or other user-input.

It would be nice to prompt the user with a VBA selection window, where the user selects the different configurations, which then will show ONLY the specific paragraphs marked with such different identifications.

Sorry is not easy to explain, so I'll give you further notes in case someone could help me with this project.

Regards,

Andrew

gmayor
07-21-2018, 10:01 PM
The best way to approach this would be with a VBA userform, on which you could make your selections, either from lists or by check boxes or radio buttons and then write to the document texts based upon your selections. The texts could be stored in the template e.g. as autotexts, and you could write them to bookmarked locations in the document. http://www.gmayor.com/Userform.htm (http://www.gmayor.com/Userform.htm)for a more in depth explanation, see http://gregmaxey.mvps.org/Create_and_employ_a_UserForm.htm
(http://www.gmayor.com/Userform.htm)

macropod
07-21-2018, 11:53 PM
Cross-posted at: http://www.msofficeforums.com/word-vba/39819-word-dynamic-content-paragraph-configuration.html
Please read VBA Express' policy on Cross-Posting in item 3 of the rules: http://www.vbaexpress.com/forum/faq.php?faq=new_faq_item#faq_new_faq_item3