View Single Post
 
Old 05-18-2020, 05:34 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You can already add another entry to the subject list, simply by clicking on the content control, then choosing Developer>Controls>Properties>Add. Having to do it that way ensures greater consistency in the data entry. Otherwise:
Code:
Sub Modify()
Dim CCtrl As ContentControl
For Each CCtrl In ActiveDocument.ContentControls
  With CCtrl
    If .Type = wdContentControlDropdownList Then .Type = wdContentControlComboBox
  End With
Next
End Sub
You will also need to edit the existing VBA code to change the wdContentControlDropdownList references to wdContentControlComboBox.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote