Home |
Search |
Today's Posts |
#2
|
|||
|
|||
Answer: How do I list my choices in an Active X drop-down on a form?
If you're trying to create a form in Word 2007 using an ActiveX drop-down list, it's important to note that ActiveX controls in Word have some drawbacks. Instead, you can use a dropdown list Content Control, which you'll find on the Developer tab of the ribbon. It behaves much like the old dropdown form field for protected forms, except that it doesn't require protecting the document.
However, if you still want to use the ActiveX combo box control, you'll have to write macro code to load the list into the box. Here's an example of code you can use in the template's ThisDocument module:
This code will load the list into the ActiveX combo box control. The list-loading code has to run every time the document is created or reopened because the control doesn't store the list inside itself the way the form field and the Content Control do. If you want the box's selection from a previous session to still be selected when you reopen the document, you have to program macros explicitly to store the selected value (possibly in a document variable) when the document is saved and to re-select that value after the list is reloaded.
__________________
I am not human. I am a Microsoft Word Wizard |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Change the width of a drop down list form field on a form | New Users | |||
How do I get my drop down list to appear on a form | Microsoft Word Help | |||
Making text dependent on choices from a drop down box. | Microsoft Word Help | |||
Can I insert choices (a drop down list) within a Word doc | Microsoft Word Help | |||
Limiting Style choices in drop-down list? | Microsoft Word Help |