Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Making a list of 100s of items typing narrows search

I have a list of about 250 food items, in order for someone to choose the
item they have to use the little scroll bar. I want it to kind of be like on
facebook or google were when u start typing it narrows and shows you options
to choose from in the list. Say i wanted it to say apple. When i start
typing app there should be in the list apple and appricott and any other food
that starts with app. Please help me ive been looking for solutions for
about 2 weeks now and this project is due in 2 weeks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Making a list of 100s of items typing narrows search

I assume you are using a ListBox, correct? Where is it located... directly
on the worksheet or on a UserForm? If on the worksheet, where did you get
the ListBox from... the Control Toolbox toolbar or the Forms toolbar? Or are
you using a Validation List? Just so we won't have to "make something up",
where is your food list located at (sheet, column)?

--
Rick (MVP - Excel)


"Ryan" wrote in message
...
I have a list of about 250 food items, in order for someone to choose the
item they have to use the little scroll bar. I want it to kind of be like
on
facebook or google were when u start typing it narrows and shows you
options
to choose from in the list. Say i wanted it to say apple. When i start
typing app there should be in the list apple and appricott and any other
food
that starts with app. Please help me ive been looking for solutions for
about 2 weeks now and this project is due in 2 weeks.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Making a list of 100s of items typing narrows search

Shouldn't be any problem.
How is your data displayed?
In the sheet or in a listbox in a form or any other than that?

RBS


"Ryan" wrote in message
...
I have a list of about 250 food items, in order for someone to choose the
item they have to use the little scroll bar. I want it to kind of be like
on
facebook or google were when u start typing it narrows and shows you
options
to choose from in the list. Say i wanted it to say apple. When i start
typing app there should be in the list apple and appricott and any other
food
that starts with app. Please help me ive been looking for solutions for
about 2 weeks now and this project is due in 2 weeks.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Making a list of 100s of items typing narrows search

What type of list?

Data Validation dropdown?

Autocomplete is not supported in DV lists.

See Debra Dalgleish's site for using a combobox in conjunction with the DV
list.

http://www.contextures.on.ca/xlDataVal10.html


Gord Dibben MS Excel MVP

On Fri, 13 Nov 2009 09:13:02 -0800, Ryan
wrote:

I have a list of about 250 food items, in order for someone to choose the
item they have to use the little scroll bar. I want it to kind of be like on
facebook or google were when u start typing it narrows and shows you options
to choose from in the list. Say i wanted it to say apple. When i start
typing app there should be in the list apple and appricott and any other food
that starts with app. Please help me ive been looking for solutions for
about 2 weeks now and this project is due in 2 weeks.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 149
Default Making a list of 100s of items typing narrows search

Ryan,

It will likely take some time to program something that mimics the Google
search filter text box. Do you really need to visibly see all of the results
in the box as you type, or is simply one result as you type sufficient?

Adding a ComboBox to a UserForm will fulfill the latter question. So, you
can do the following (as an example):
- Open VBE
- Insert a UserForm (Insert | UserForm)
- Add a ComboBox to the UserForm

UserForm Code (which assumes your list starts in A1 and is contiguous in
column A):
Private Sub UserForm_Initialize()
Dim varRange As Variant
varRange = Range(Range("A1"), Range("A1").End(xlDown)).Value
Me.ComboBox1.List = varRange
End Sub

Module Code:
Sub ShowForm()
UserForm1.Show
End Sub

Simply run "ShowForm", put the cursor into the ComboBox, and start typing.

Best,

Matthew Herbert

"Ryan" wrote:

I have a list of about 250 food items, in order for someone to choose the
item they have to use the little scroll bar. I want it to kind of be like on
facebook or google were when u start typing it narrows and shows you options
to choose from in the list. Say i wanted it to say apple. When i start
typing app there should be in the list apple and appricott and any other food
that starts with app. Please help me ive been looking for solutions for
about 2 weeks now and this project is due in 2 weeks.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making list of unique items from two different columns casey Excel Worksheet Functions 10 April 1st 08 07:40 PM
search if a string contains text matching items in a list neil Excel Worksheet Functions 3 March 11th 08 09:13 PM
Is there a way of Making monthly tabs without typing each month? UCAPERSinAlaska Excel Discussion (Misc queries) 4 December 7th 05 06:18 PM
Speed Search in pick list by typing only first few letters Shrikant Excel Discussion (Misc queries) 2 August 25th 05 01:39 PM
Making list of items to truck monthly usage Yarek Excel Discussion (Misc queries) 0 June 23rd 05 10:37 AM


All times are GMT +1. The time now is 02:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"