Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am a beginner at VB so please be patient.
I have the following code in my initialize statement: 'Sets ComboBox RowSource ComboBox1.RowSource = "Names" ComboBox2.RowSource = "Names" ComboBox3.RowSource = "VendorCode" 'Sets default item from lists in ComboBoxes UserForm1.ComboBox1.ListIndex = 0 UserForm1.ComboBox2.ListIndex = 0 UserForm1.ComboBox3.ListIndex = 0 For some reason only ComboBox 1 show default text highlighted in blue as the default, where the others do not. I have checked the Properties for all 3 and they are set correctly and all items correctly show in the lists of the combo boxes and can be selected or pick up from first characters typed. Any suggestions on how I can get the first item of my lists to appear highlighted in ComboBox 2 and 3? Thanks! Shauna |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Shauna:
Your code works fine for me in Excel 2002. Regards, Vasant. "Shauna Koppang" wrote in message ... I am a beginner at VB so please be patient. I have the following code in my initialize statement: 'Sets ComboBox RowSource ComboBox1.RowSource = "Names" ComboBox2.RowSource = "Names" ComboBox3.RowSource = "VendorCode" 'Sets default item from lists in ComboBoxes UserForm1.ComboBox1.ListIndex = 0 UserForm1.ComboBox2.ListIndex = 0 UserForm1.ComboBox3.ListIndex = 0 For some reason only ComboBox 1 show default text highlighted in blue as the default, where the others do not. I have checked the Properties for all 3 and they are set correctly and all items correctly show in the lists of the combo boxes and can be selected or pick up from first characters typed. Any suggestions on how I can get the first item of my lists to appear highlighted in ComboBox 2 and 3? Thanks! Shauna |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Wonder if there are any change events linking the comboboxes.
However, since this doesn't change, why not just make these settings in the property box of each combobox in the VBE. -- Regards, Tom Ogilvy Vasant Nanavati wrote in message ... Hi Shauna: Your code works fine for me in Excel 2002. Regards, Vasant. "Shauna Koppang" wrote in message ... I am a beginner at VB so please be patient. I have the following code in my initialize statement: 'Sets ComboBox RowSource ComboBox1.RowSource = "Names" ComboBox2.RowSource = "Names" ComboBox3.RowSource = "VendorCode" 'Sets default item from lists in ComboBoxes UserForm1.ComboBox1.ListIndex = 0 UserForm1.ComboBox2.ListIndex = 0 UserForm1.ComboBox3.ListIndex = 0 For some reason only ComboBox 1 show default text highlighted in blue as the default, where the others do not. I have checked the Properties for all 3 and they are set correctly and all items correctly show in the lists of the combo boxes and can be selected or pick up from first characters typed. Any suggestions on how I can get the first item of my lists to appear highlighted in ComboBox 2 and 3? Thanks! Shauna |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Access items stored in combobox | Excel Discussion (Misc queries) | |||
help on spinbutton controllinng a text or ComboBox showing time | Excel Discussion (Misc queries) | |||
formatting the list items for ComboBox created using Forms | Excel Discussion (Misc queries) | |||
missing items in sheet's activex list/combobox after resizing range | Excel Programming | |||
ComboBox items | Excel Programming |