![]() |
Combobox Items Not Displaying |
Post Reply ![]() |
Author | |
jcollier ![]() Senior Member ![]() Joined: 15 February 2006 Status: Offline Points: 250 |
![]() ![]() ![]() ![]() ![]() Posted: 13 October 2006 at 5:53pm |
Using the following code can anyone tell me why, when I click the combo on the CommandBar, nothing appears? It just kinda flickers and nothing else happens.
Dim Control As CommandBarControl Dim FormatBar As CommandBar Set FormatBar = CommandBars.Add("Format", xtpBarTop) CommandBars.ActiveMenuBar.Visible = False With FormatBar.Controls Set Control = .Add(xtpControlComboBox, 1, "Font") Control.Width = 140 Control.DropDownListStyle = True Control.AddItem "Tahoma" Control.AddItem "Arial" Control.AddItem "Times New Roman" End With |
|
![]() |
|
jcollier ![]() Senior Member ![]() Joined: 15 February 2006 Status: Offline Points: 250 |
![]() ![]() ![]() ![]() ![]() |
Seems to work if I take out the .DropDownListStyle line. Not sure why but it works.
|
|
![]() |
|
tobi ![]() Senior Member ![]() ![]() Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
![]() ![]() ![]() ![]() ![]() |
Did you try to put .DropDownListStyle before adding entries ?
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |