FormField.EntryMacro property (Word)

Returns or sets an entry macro name for the specified form field (CheckBox, DropDown, or TextInput). Read/write String.

Syntax

expression. EntryMacro

expression A variable that represents a 'FormField' object.

Remarks

The entry macro runs when the form field gets the focus.

Example

This example assigns the macro named "Blue" to the first form field in "Form.doc."

Documents("Form.doc").FormFields(1).EntryMacro = "Blue"

This example assigns the macro named "Breadth" to the form field named "Text1" in the active document.

ActiveDocument.FormFields("Text1").EntryMacro = "Breadth"

See also

FormField Object

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.