How JustAnswer Works:
  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.
Ask Greg Maxey Your Own Question
Greg Maxey
Greg Maxey, Consultant\Microsoft Word Expert
Category: General
Satisfied Customers: 62
Experience:  Microsoft Word Most Valuable Professional (6 years)
Type Your Question Here...
Greg Maxey is online now
A new question is answered every 9 seconds

How do you extract the value of a checkbox from an MS Word

Resolved Question:

How do you extract the value of a checkbox from an MS Word 2003 bookmark using VBA?
Submitted: 7 years ago.
Category: General
Expert:  Greg Maxey replied 7 years ago.

You can use a macro to evaluate all checkboxes or and onExit macro to process single checkboxes. Here are a few examples:


Sub ScratchMaco()
Dim oFF As FormField
For Each oFF In ActiveDocument.FormFields
If oFF.Type = wdFieldFormCheckBox Then
MsgBox oFF.Name & " " & oFF.CheckBox.Value
End If
End Sub

Sub ScratchMacoOnExit()
If Selection.FormFields(1).CheckBox.Value = True Then
MsgBox "Do this"
MsgBox "Do that"
End If
End Sub



Greg Maxey and 64 other General Specialists are ready to help you