A family of Microsoft word processing software products for creating web, email, and print documents.
Use the following code:
Private Sub CheckBox1_Click()
With ActiveDocument
With .Variables("Comment")
If CheckBox1.Value = True Then
.Value = InputBox("Insert your comment here", "CheckBox Comment Facilty")
Else
.Value = " "
End If
End With
.Range.Fields.Update
End With
End Sub
Then, when you check the box, a dialog will appear into which you can insert your comment, which will be displayed in the Docvariable field