Sub CreeCheckBox()
Dim obj As Object
Dim CB As MSForms.CheckBox
'/// Remplacez ActiveDocument par votre variable objet (WordApp ?) ///
Set obj = ActiveDocument.Shapes _
.AddOLEControl(ClassType:="Forms.CheckBox.1")
Set CB = obj.OLEFormat.Object
With CB
.Value = True
.Caption = "Mon Option #1"
.BackColor = RGB(255, 0, 0)
With .Font
.Name = "Courrier"
.Size = 16
.Bold = True
.Italic = True
End With
.WordWrap = True
.AutoSize = True
End With
End Sub
Sub UpdateCheckBox()
Dim S As Shape
Dim CB As MSForms.CheckBox
'/// Remplacez ActiveDocument par votre variable objet (WordApp ?) ///
For Each S In ActiveDocument.Shapes
If S.Type = 12 Then 'msoOLEControlObject
Set CB = S.OLEFormat.Object
With CB
If .Caption = "Mon Option #1" Then
'### à adapter en fonction de ce qu'il y a dans Excel ###
'if dans Excel c'est vrai Then
' .Value = True
'Else
.Value = False
'End If
'########################################################
End If
End With
End If
Next S
End Sub