Consulting

Results 1 to 3 of 3

Thread: WORD DYNAMIC CONTENT & PARAGRAPH CONFIGURATION

  1. #1
    VBAX Newbie
    Joined
    Jul 2018
    Posts
    1
    Location

    Lightbulb WORD DYNAMIC CONTENT & PARAGRAPH CONFIGURATION

    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

  2. #2
    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 for a more in depth explanation, see http://gregmaxey.mvps.org/Create_and...a_UserForm.htm
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  3. #3
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Cross-posted at: http://www.msofficeforums.com/word-v...iguration.html
    Please read VBA Express' policy on Cross-Posting in item 3 of the rules: http://www.vbaexpress.com/forum/faq...._new_faq_item3
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •