Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check data in an Excell Cell

Status
Not open for further replies.

grabrail

Technical User
Aug 15, 2001
269
GB
Hi

A colleague of mine is struggling witha bit of code.

Basically he has an excell spreadsheet that has a dropdown box with various values

He needds a bit of VB code to check if entered data is actually in this list of data.

EG

Data = a,b,c,d,e,f

entered data is g

code should be something like.

if entered data not in list of data then

Can anybody help me here.

Cheers J
 




Hi,

An Excel dropdown box could be one of severa objects...

Control Toolbox

MS Form

Data/Validation

Depending on the type of object, you much check the ListFillRange to determine if it's pointing to a RANGE or if the values have been loaded by the AddItem method.

Skip,

[glasses] [red][/red]
[tongue]
 
Hi

It appears the drop down box is a standard list box

Cheers
 



There is no such OBJECT as a "standard list box"

It is one of the afore mentioned 3. Which one?


Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top