LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 102
Default Default value of msoControlComboBox

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change default number to default text? [email protected] Excel Programming 1 April 1st 09 07:30 PM
Default Windows Profile without default Office user info Karen Excel Discussion (Misc queries) 0 November 12th 08 04:53 PM
Default ribbon to open by default when opening xls in browser Hank Excel Discussion (Misc queries) 0 April 10th 08 10:12 PM
store default printer, change printer and then restore default printer? Dennis Pedersen Excel Programming 0 November 14th 07 09:18 PM
msoControlComboBox Value JayWes Excel Programming 3 August 10th 07 01:32 PM


All times are GMT +1. The time now is 04:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"