Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Extending match time for a combo box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Doug Lowe - 10 Nov 2004 19:58 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.