ComboBox AutoWordSelect issue?

underpressure

Board Regular
Joined
Nov 24, 2012
Messages
141
When debugging, UserForm ComboBox1 and 2 will “auto select” the names in the ranges.
I can enter the first letter in the ComboBox and the item is displayed, in this case, Range R is a list of cities, Range S is a list of States.

When the UserForm is run LIVE, I must enter the entire city or state name even though the ComboBoxes display the lists.

What can I do to resolve this issue?

Code:
Private Sub UserForm_Initialize()
Dim x
Dim y
With Sheets("Settings")
    For x = 1 To .Cells(Rows.Count, "R").End(xlUp).Row
        ComboBox1.AddItem (.Range("R" & x).Value)
    Next x
    For y = 1 To .Cells(Rows.Count, "S").End(xlUp).Row
        ComboBox2.AddItem (.Range("S" & y).Value)
    Next y
End With
End Sub
 
Fluff,
Fixed it!
The UserForm in question is shown from another UserForm.
Rich (BB code):
If CLoc Is Nothing Then
    ComboBox1.Value = ""
    UserForm2.Show modeless
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Glad you fixed it & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top