View Single Post
 
Old 07-06-2017, 09:20 AM
gmaxey gmaxey is offline Windows 7 32bit 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

You can do it using the Content Control OnExit event:

Code:
 
Private Sub Document_ContentControlOnExit(ByVal ContentControl As ContentControl, Cancel As Boolean)
Select Case ContentControl.Tag
Case "type"
If ContentControl.Range.Text = "Litigation / Litige" Then MsgBox "Some notification"
End Select
End Sub
or you can map the control to a customXMLpart and use a pseudo change event:

Code:
Private Sub Document_ContentControlBeforeStoreUpdate(ByVal ContentControl As ContentControl, Content As String)
 Select Case ContentControl.Tag
    Case "type"
      If ContentControl.Range.Text = "Litigation / Litige" Then MsgBox "Some notification"
  End Select
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote