Hi all,
I have an application (a Word 2002 VBA macro) that requires users to make a
selection from a combo box. The users typically type text to make the match,
but the 2-second default timing for the combo box isn't enough. They're
complaining that they'd like more time to type.
I can't find any properties on the ComboBox to change this. I did find this
text in the Help documenting the time allowed for matching:
"The matching feature resets after two seconds (six seconds if you are using
Far East settings). For example, if you have a list of the 50 states and you
type "CO" quickly, you will find "Colorado." But if you type "CO" slowly,
you will find "Ohio" because the auto-complete search resets between
letters."
Has anyone figured out a way to change this behavior so it takes longer than
2 seconds to reset?
Thanks,
Doug
Perry - 10 Nov 2004 22:15 GMT
Create a userform, draw one combobox on it, named: ComboBox1 and
use below code to test whether it serves yr needs.
Private Sub ComboBox1_Change()
'note the line continuation marks
Me.ComboBox1.MatchEntry = _
IIf(Len(Me.ComboBox1.Text) > 2, _
fmMatchEntryComplete, fmMatchEntryNone)
End Sub
Private Sub UserForm_Initialize()
Me.ComboBox1.AddItem "apples"
Me.ComboBox1.AddItem "pears"
Me.ComboBox1.AddItem "bananas"
End Sub
Krgrds,
Perry
> Hi all,
>
[quoted text clipped - 18 lines]
>
> Doug