Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Repost: How to Limit No of Records in a Validation List



Can this be done thru a user form?

-----Original Message-----
Hi All,

How can I limit the number of items listed in a Data
Validation list by selecting First few letters enterd?

for eg. I have a vlaidation list with more than 500
unique items from which i have to select. what i am
looking for is that if I type a few letters the
validation list should display only items starting with
those letters..

Is it possible thru code or any other way?

Thanks for assistance

Abdul

.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Repost: How to Limit No of Records in a Validation List

In a userform, the listbox or combox can be set to jump to the closest match
as you type - it doesn't reduce the possible selections, but this should
achieve the desired result. You would need to sort the list.

--
Regards,
Tom Ogilvy


"Abdul" wrote in message
...


Can this be done thru a user form?

-----Original Message-----
Hi All,

How can I limit the number of items listed in a Data
Validation list by selecting First few letters enterd?

for eg. I have a vlaidation list with more than 500
unique items from which i have to select. what i am
looking for is that if I type a few letters the
validation list should display only items starting with
those letters..

Is it possible thru code or any other way?

Thanks for assistance

Abdul

.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Repost: How to Limit No of Records in a Validation List

It really doesn't require code. You just use the MatchEntry property:
Here are the choices (from help)

fmMatchEntryFirstLetter
Value: 0
Basic matching. The control searches for the next entry that starts with
the character entered. Repeatedly typing the same letter cycles through all
entries beginning with that letter.


FmMatchEntryComplete
Value: 1
Extended matching. As each character is typed, the control searches for an
entry matching all characters entered (default).


FmMatchEntryNone
Value: 2
No matching.

You need to read the vba help on this to get further information. Look at
some of the other properties of the listbox or combobox as well.

--
Regards,
Tom Ogilvy




"Abdul" wrote in message
...
Hi Tom,

Could you plsgive a code eg. to use in a user form?

TIA
Abdul


-----Original Message-----
In a userform, the listbox or combox can be set to jump

to the closest match
as you type - it doesn't reduce the possible selections,

but this should
achieve the desired result. You would need to sort the

list.

--
Regards,
Tom Ogilvy


"Abdul" wrote in message
...


Can this be done thru a user form?

-----Original Message-----
Hi All,

How can I limit the number of items listed in a Data
Validation list by selecting First few letters enterd?

for eg. I have a vlaidation list with more than 500
unique items from which i have to select. what i am
looking for is that if I type a few letters the
validation list should display only items starting

with
those letters..

Is it possible thru code or any other way?

Thanks for assistance

Abdul

.



.



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
Data Validation - repost RaulDR Excel Discussion (Misc queries) 2 September 9th 08 11:33 AM
limit records in query dsharbaugh Excel Discussion (Misc queries) 2 January 16th 08 07:53 AM
Data validation list limit? andy62 Excel Worksheet Functions 3 March 24th 07 05:55 PM
REPOST: Count certain records in filtered data Steve Simons Excel Discussion (Misc queries) 5 August 19th 06 12:48 PM
limit validation list to prevent dups Sonya Excel Discussion (Misc queries) 1 October 28th 05 07:05 PM


All times are GMT +1. The time now is 10:48 AM.

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

About Us

"It's about Microsoft Excel"