![]() |
|
#9
|
|||
|
|||
|
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
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Move to next content control
|
cksm4 | Word VBA | 13 | 07-02-2019 07:48 PM |
Hierarchical content control
|
ntjson | Word VBA | 1 | 04-04-2013 12:07 AM |
Content control titles
|
jillapass | Word VBA | 3 | 05-29-2012 06:11 AM |
| Retrieving content control value | jillapass | Word VBA | 4 | 05-24-2012 05:07 AM |
| Calendar control accepts other values | JeJ | Word | 0 | 03-02-2011 03:38 PM |