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 / General PowerPoint Questions / February 2007

Tip: Looking for answers? Try searching our database.

moving through items in listboxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
revduke123 - 17 Feb 2007 02:32 GMT
HI all,

I'm using Office 2004, and trying to use a listbox to enable user to
choose an item - in this case, a filename from a list of filenames.
The code is below.
The form opens up fine, the list of files appears fine, you can use
the up/down arrows to select items; but I can't get the 'matching'
feature to work.  As soon as you press any other key, the selection
jumps to the top of list.  I want the selection to jump to the first
occurrence of the phrase tha the user types in, using the 'complete
match' process

Any ideas what I'm doing wrong?
Thanks for any help.
Revduke

Sub testuserform()

dirlist ' this sub sticks a directory listing into a string array
called file_names
BubbleSort (file_names) 'now I sort it
Load UserForm1
UserForm1.ListBox1.MatchEntry = fmMatchEntryComplete
UserForm1.ListBox1.ColumnCount = 1
UserForm1.ListBox1.List() = file_names
UserForm1.ListBox1.TextColumn = 1
UserForm1.Show
End Sub
Steve Rindsberg - 17 Feb 2007 04:07 GMT
This section of the bleachers is mostly for the Windows team, though there's no
signage to warn you of that.  

No worries.  I've replied in the Mac section where you also posted the same
question.  Let's follow up there.

> HI all,
>
[quoted text clipped - 24 lines]
> UserForm1.Show
> End Sub

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 
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.