Default value of msoControlComboBox

B

Benjamin

I'd like to have a default value of -Select Action-
for my combobox drop down menu.
I know how to add items... but how do I have a intial value that
shows default, before a user selects anything?

'<<--Button 4 Acad Actions
' Create a button with an image on the bar and set some
' properties.
Set ComBarContrl = ComBar.Controls.Add(Type:=msoControlComboBox)
With ComBarContrl
'the facId line will let you choose an icon
' If you choose to use the faceId then the caption is not displayed
.FaceId = 1081
.Style = msoButtonIconAndCaption
.AddItem "First Item", 1
.AddItem "Second Item", 2
'.DropDownWidth = 200
.DropDownLines = 3
.Caption = "Action"
.TooltipText = "Select Acad Edit Action"
.Width = 130
End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top