View Single Post
 
Old 09-29-2020, 07:08 AM
gmaxey gmaxey is offline Windows 10 Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,427
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Lets say the CCs are Titled/Tagged "Condition" and "Value." The "Condition" CC is a dropdown with the display entries "meets" and "exceeds" with the values 0.25 and 0.75. The "Value" CC is a plain text CC.


If you mapped the to CCs to a CustomXMLPart to nodes named "Condition" and "Value" then you could use:

Code:
Private Sub Document_ContentControlBeforeStoreUpdate(ByVal ContentControl As ContentControl, Content As String)
  Select Case ContentControl.Tag
    Case "Condition"
      ContentControl.XMLMapping.CustomXMLPart.SelectSingleNode("/ns0:CC_Map_Root[1]/ns0:Value[1]").Text = Content
  End Select
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote