Combobox auto complete

Yogi

Board Regular
Joined
Oct 21, 2002
Messages
74
I have a worksheet named, "Database2". There are hundreds of names in colum B starting in row 3 of this worksheet.
In the same Workbook is a worksheet named, "Records". I want to create a userform with a combo box, an "Enter" and "Cancel" command button. When typing begins in the combo box I need it to recognize the name from the "Database2" list in colum B and executes auto complete. When the "Enter" button is clicked I need it to enter the name in the first available row in colum B starting in row 3 in the Worksheet named "Records".
Any help is greatly apreciated.
Thanks
 
Jaafar

Exactly!
The reason I specified that property is because I figured Yogi would not want a name entered if it was not on the list.
I guess you just never know.

Bob
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Just want to make a follow up question on this thread. What if I choose not to use a user form. Instead I just want the "Enter" and "Cancel" button in my sheet and not in a form. And so the following line would not be applicable anymore, especially the

Code:
Private Sub UserForm_Initialize()
...
End Sub

Code:
Private Sub UserForm_Initialize()
  With cboNames
    .Style = fmStyleDropDownList
    .MatchEntry = fmMatchEntryComplete
    .EnterFieldBehavior = fmEnterFieldBehaviorSelectAll
    .RowSource = "Database2!Names"
    .ListIndex = 0
  End With
End Sub

Basically I just need to make the combo box, Enter and Cancel button appears in the my sheet and not in a form and still performs the same functions of auto-complete. Any suggestions?
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,684
Members
449,116
Latest member
HypnoFant

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