title: VBa to clear all activex checkboxes in Word document
body: <p>I'm trying to create a button to clear all the activex check-boxes in a .docm file, but nothing seems to work. I saw many posts in the fórum, but none seems to work. Can anyone help me? Obs.: the original file have at least 30 check boxes and I don't want to type all the check-boxes names.
  See the code below and the example file attached</p>
  
  <p>Ps.: I tried ThisDocument.Fields; Me.Control and many others.</p>
  
  <p>See attached image as example: <a href="https://i.stack.imgur.com/2wVFC.png" rel="nofollow noreferrer">ActiveX CheckBox</a></p>
  
  <pre><code>Private Sub CommandButton1_Click()
  Dim Ctl As MSForms.Control
  
      For Each Ctl In ThisDocument.FormFields
          If Ctl.Name = "CheckBox" Then Ctl.Value = False
      Next Ctl
  End Sub
  </code></pre>