Default Property

Applies To

CheckBox object, DropDown object, TextInput object.

Description

CheckBox object: Returns or sets the default check box value. True if the default value is checked. Read/write Boolean.

DropDown object: Returns or sets the default drop-down item. The first item in a drop-down form field is 1, the second item is 2, and so on. Read/write Long.

TextInput object: Returns or sets the text that represents the default text box contents. Read/write String.

See Also

CheckBox property, DropDown property, EditType method, TextInput property, Value property.

Example

This example sets the default text for the text form field named "Name."

ActiveDocument.FormFields("Name").TextInput.Default = "your name"
If the first form field in the active document is a check box, this example retrieves the default value.

If ActiveDocument.FormFields(1).Type = wdFieldFormCheckBox Then _
    defvalue = ActiveDocument.FormFields(1).CheckBox.Default
This example sets the default item for the drop-down form field named "Colors" in Sales.doc.

Documents("Sales.doc").FormFields("Colors").DropDown.Default = 2