![]() |
#5
|
||||
|
||||
![]()
To populate the userform combobox with the values from a document Content Control I would try code similar to the following.
Code:
Private Sub UserForm_Initialize() Dim i As Integer With ActiveDocument.ContentControls(1).DropdownListEntries For i = 1 To .Count Me.cbTest.AddItem .Item(i).Text Next i End With End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
marksm33 | Word VBA | 3 | 01-15-2015 07:55 PM |
VBA Code in a UserForm module to delete a Command Button which opens the userform | Simoninparis | Word VBA | 2 | 09-21-2014 03:50 AM |
This is a Userform LIstbox queston: A variable does not set to the value of a listbox | CatMan | Excel Programming | 14 | 08-18-2014 08:14 PM |
![]() |
CatMan | Excel | 1 | 08-08-2014 09:41 AM |
Userform Code not quite right - help please | vbanovice | Word VBA | 1 | 09-29-2013 09:20 PM |