View Single Post
 
Old 10-31-2019, 06:38 AM
Carlg Carlg is offline Windows 8 Office 2007
Novice
 
Join Date: Oct 2019
Posts: 2
Carlg is on a distinguished road
Default

Quote:
Originally Posted by Guessed View Post
It can be done if you:
1. Set up the drop down CC with different values for Display Name and Value
2. Bind that CC to an XML Mapping element by using the XML Mapping Pane
3. Make a selection with the drop down

When you want to 'fix' the CCs to show the values, run the
4. Run a macro to convert the CC type to a Plain Text CC.
Code:
Sub ChangeCCType()
  Dim aCC As ContentControl
  For Each aCC In Selection.Range.ContentControls
    aCC.Type = wdContentControlText
  Next
End Sub
I tried using this, but it did not work, it still comes up as the Display Name rather than the Value. Can you explain how I can bind the CC to an XML mapping element? I do not know how to do that.
Reply With Quote