View Single Post
 
Old 08-18-2021, 03:14 AM
gibra's Avatar
gibra gibra is offline Windows 10 Office 2019
Novice
 
Join Date: Mar 2021
Posts: 8
gibra is on a distinguished road
Default

I'm not sure what you intend with SUM, because Checkboxes are True o False.Did you mean Count, instead?

However you can discovery the value of each checkbox with this code:
Code:
Option Explicit


Sub Esamina()
    Dim n As Long
    Dim s As ContentControl
    For Each s In ActiveDocument.ContentControls
        n = n + 1
        Debug.Print n, s.ID, s.Checked
    Next
End Sub
Reply With Quote