View Single Post
 
Old 10-02-2013, 06:54 AM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

If you "Input" CCs are mapped and all tagged "Input" then you could use something like this:

Code:
Private Sub Document_ContentControlOnExit(ByVal CC As ContentControl, Cancel As Boolean)
Dim strComposite As String
Dim oCC As ContentControl
  Select Case CC.Tag
    Case "Input"
      For Each oCC In ActiveDocument.ContentControls
        If oCC.Tag = "Input" Then
          If oCC.XMLMapping.IsMapped Then
            strComposite = strComposite & " " & oCC.XMLMapping.CustomXMLNode.Text
          End If
        End If
      Next oCC
      MsgBox strComposite
  Case Else
  
  End Select
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote