
check box form fields count
Hi Fred,
Use:
Dim aff As FormField, Counter As Integer
Counter = 0
For Each aff In ActiveDocument.FormFields
If aff.Type = wdFieldFormCheckBox Then
Counter = Counter + 1
End If
Next aff
MsgBox "There are " & Counter & " checkboxes in the document."
Please respond to the newsgroups for the benefit of others who may be
interested.
Hope this helps
Doug Robbins - Word MVP
Quote:
> Can anyone tell me please how to count the number of
> formfields in a document which are specific types i.e
> checkbox.
> I can count the total formfields in the document but can
> fathom how to only count the ones which are check boxes.
> Cheers in anticipation.
> Fred