Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default ComboBox Default items Not Showing

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default ComboBox Default items Not Showing

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default ComboBox Default items Not Showing

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
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
Access items stored in combobox Geoff Excel Discussion (Misc queries) 1 September 5th 07 01:58 AM
help on spinbutton controllinng a text or ComboBox showing time [email protected] Excel Discussion (Misc queries) 4 July 29th 07 04:11 AM
formatting the list items for ComboBox created using Forms Desmond Excel Discussion (Misc queries) 3 May 4th 06 10:04 AM
missing items in sheet's activex list/combobox after resizing range Tim Zych[_2_] Excel Programming 1 August 11th 03 10:48 PM
ComboBox items Keith Willshaw Excel Programming 2 July 17th 03 11:22 AM


All times are GMT +1. The time now is 06:20 PM.

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

About Us

"It's about Microsoft Excel"