Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2020, 05:34 AM
macropod's Avatar
macropod macropod is offline Content Controls - Dependent Dropdown & Text Windows 7 64bit Content Controls - Dependent Dropdown & Text Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,369
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Controls - Dependent Dropdown & Text Content Controls - Dependent Dropdown someazguy Word VBA 14 02-05-2023 08:01 PM
Content Controls - Dependent Dropdown & Text Multiple dependent dropdown lists in table with add new row option jeweldarby Word VBA 6 05-21-2022 04:37 PM
Content Controls - Dependent Dropdown & Text Dependent dropdown and repeat section NLJ Word VBA 3 01-12-2020 05:00 PM
Content Controls - Dependent Dropdown & Text Dropdown Menu Dependent on a Previous Drop Down lgsikaffy Word VBA 3 12-14-2018 05:14 PM
Dropdown dependent text JakeLRL Word VBA 7 04-07-2016 08:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft