Combox is slow and floats in other sheets

promo1313

New Member
Joined
Sep 4, 2019
Messages
13
Hi,

I used a combox that fills as you type in a project with a long list. I used this option instead of the regular dropbox, because at time we have more than 1000 options to choose from, and it easier for the user to start typing and selecting.

The only issue I am having with the combox, is that it is really slow, and sometimes crashes the project. Also, at times, it seems to appear in other sheets on the same document workbook, or if I have another workbook open, it pops up there Iis there a way that this can be sped up with vba? Or is there maybe an option in the preferences that I need to change?

Any help would be of great assistance.

this is the code that I have for the combobox

VBA Code:
Private Sub ComboBox1_Change()
ComboBox1.ListFillRange = "Dropdown"
Me.ComboBox1.DropDown
End Sub
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Remove:
ComboBox1.ListFillRange = "Dropdown"

Assign DropDown to the ListFillRange property initially, one time, in your properties window. (without the quotes)

1582313865107.png
 
Upvote 0
Here's an example of a searchable combobox with VBA:
deCombobox - sheet,1 cell, searchable,filter - example 1.xlsm

You can adjust the code in this part:
VBA Code:
'=============== YOU MAY NEED TO ADJUST THE CODE IN THIS PART: ===================================

'sheet's name where the list (for combobox) is located. [in the sample: sheet "deList"]
Private Const sList As String = "deList"

'cell where the list start [in the sample: cell A2 in sheet "deList" ]
Private Const sCell As String = "A2"

'the linked cell
Private Const xCell As String = "B3"


And if you want a searchable combobox for multiple cells, here's an example:
best-way-to-create-a-searchable-drop-down-list-with-auto-complete-functionality-to-cells-in-a-column
 
Upvote 0
Here's an example of a searchable combobox with VBA:
deCombobox - sheet,1 cell, searchable,filter - example 1.xlsm

You can adjust the code in this part:
VBA Code:
'=============== YOU MAY NEED TO ADJUST THE CODE IN THIS PART: ===================================

'sheet's name where the list (for combobox) is located. [in the sample: sheet "deList"]
Private Const sList As String = "deList"

'cell where the list start [in the sample: cell A2 in sheet "deList" ]
Private Const sCell As String = "A2"

'the linked cell
Private Const xCell As String = "B3"


And if you want a searchable combobox for multiple cells, here's an example:
best-way-to-create-a-searchable-drop-down-list-with-auto-complete-functionality-to-cells-in-a-column
Thank you Akuini,

This helped a bunch!
 
Upvote 0
You're welcome, glad to help, & thanks for the feedback.:)
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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