How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Greg Maxey Your Own Question
Greg Maxey
Greg Maxey, Consultant\Microsoft Word Expert
Category: General
Satisfied Customers: 62
Experience:  Microsoft Word Most Valuable Professional (6 years)
Type Your Question Here...
Greg Maxey is online now
A new question is answered every 9 seconds

Hi, I would like to create a Word template that dynamically

This answer was rated:

Hi, I would like to create a Word template that dynamically changes part of its form content based on a combo box selection. IE, I have a section of the document which is a form, but there are actually several derivatives of that form, and which derivative is displayed depends on what option the user selects in a combo box. Is such a thing possible, and if so, any idea how to go about it?

Based on your limited description I would say that such a thing is likely possilbe. By "form" I assume you mean a protected (or online form). You could create and save the different deriavatives of the form as autotext entries. You could then present a UserForm containing the combobox when a new document is created using the template. When the user makes a selection and executes, you would used VBA code to unlock the form, insert the appropriate AutoText content, re-lock the form and present it to the user.



Greg Maxey and 57 other General Specialists are ready to help you
Customer: replied 7 years ago.
Greg, this is pretty darn close. Can you clarify two bits? (1) The auto-text entries can contain form fields themselves, correct? And (2) the UserForm you refer to, is that actually IN the document created when the user opens the template file, or is that like a pop-up dialog that appears before the rest of the document is displayed when the user opens the template file?

1. Correct.

2. The UserForm is not in "IN" the document, but a separate dialog presented with and AutoNew macro in the template. See: