View Single Post
 
Old 06-21-2019, 12:13 PM
gmaxey gmaxey is offline Windows 10 Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

wolfgrrl.


Yes. First you have to map the content control to a customXMLnode. You can easily do that using the Content Control Tools addin from my website: Content Control Tools


Assume you have mapped a checkbox titled "Check Test" then using this code in the ThisDocument module of the project, you can trigger a msgbox when the CC is checked.



Code:
Private Sub Document_ContentControlBeforeContentUpdate(ByVal ContentControl As ContentControl, Content As String)
  Select Case ContentControl.Title
    Case "Check Test"
      If ContentControl.Checked Then MsgBox "I'm checked"
  End Select
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote