I am wanting to get auto-predict comboboxes in cells that have data validation lists. It is working for 2 out of 3 columns. I don't know why it's not working for all columns.
I am basing this on https://www.contextures.com/xldataval11.html:
1) Name the Lists
Create names for the cells that contain the lists.
If your lists are in named Excel tables, you'll need to create a second set of names.
Otherwise, the combo box lists will be empty.
- First, create the named ranges, based on the table columns:
o Name the cells with day names as DayListA
o Name the cells with month names as MonthListA
- Then, create a second set of names, based on that first names.
o Create a named range DayList, based on the name DayListA
o Create a named range MonthList, based on the name MonthListA
2) Create a Dropdown List
The next step is to create the dropdown lists
Cells B2:B12 have data validation lists with the source DayList.
3) Add the Combo box
4) Change the Combo Box Properties
- Name the Combo Box
- Change the Font and Font Size
- Set the Number of Rows
- Turn on AutoComplete
o In the Properties window, click in the MatchEntry property.
o From the dropdown list, select 1-frmMatchEntryComplete
5) Add the Code
VBA code:
Thanks!!
Bookmarks