View Single Post
 
Old 10-30-2019, 10:56 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote