Share via


CheckBox.Default Property

Word Developer Reference

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

Syntax

expression.Default

expression   Required. A variable that represents a CheckBox object.

Example

If the first form field in the active document is a check box, this example retrieves the default value.

Visual Basic for Applications
  Dim blnDefault As Boolean

If ActiveDocument.FormFields(1).Type = wdFieldFormCheckBox Then blnDefault = ActiveDocument.FormFields(1).CheckBox.DefaultEnd If

See Also