Sub Validate()
Dim ffld As FormField
For Each ffld In ActiveDocument.FormFields
Select Case ffld.Type
Case wdFieldFormCheckBox
If ffld.CheckBox.Value = False Then
MsgBox "Check box " & ffld.Name & " is not checked"
Exit Sub
End If
Case wdFieldFormDropDown
If ffld.DropDown.Value = 1 Then 'first entry in dropdown reads "Please Select"
MsgBox "Dropdown " & ffld.Name & " has not been set"
Exit Sub
End If
End Select
Next ffld
End Sub
|