FormField.DropDown property (Word)
Returns a DropDown object that represents a drop-down form field. Read-only.
Syntax
expression. DropDown
expression A variable that represents a 'FormField' object.
Remarks
If the DropDown property is applied to a FormField object that isn't a drop-down form field, the property won't fail, but the Valid property for the returned object will be False.
Example
This example displays the text of the item selected in the drop-down form field named "Colors."
Dim ffDrop As FormField
Set ffDrop = ActiveDocument.FormFields("Colors").DropDown
MsgBox ffDrop.ListEntries(ffDrop.Value).Name
This example adds "Seattle" to the drop-down form field named "Places" in Form.doc.
With Documents("Form.doc").FormFields("Places") _
.DropDown.ListEntries
.Add Name:="Seattle"
End With
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for