Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default simple VBA question

*sighs* ok, here's what i'im trying to do...

i'm trying to make label1 "agree or disagree" with what's put i
textbox1. By that I mean, if I type "candy" in textbox1, I want label
to "look" through column A of Sheet2 to find the cell with the wor
"candy" in it, then label1 displays the value of the cell to the righ
of the cell with the word "candy". if there is no word "candy" i
column A of Sheet2, then label1 should display "not found"

How would i begin to code this....under what Sub?

The above is a fundamental example of what i'm trying to do, in th
real practice, i'm going to enter product ID's in the textbox, and th
label is supposed to let me know if it actually is a valid product I
as i type it in.

Thanks in advance for any and all hel

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default simple VBA question

Use a combobox from the control toolbox toolbar - check the matchentry
property and the matchrequired property


--
Regards,
Tom Ogilvy


"abxy " wrote in message
...
*sighs* ok, here's what i'im trying to do...

i'm trying to make label1 "agree or disagree" with what's put in
textbox1. By that I mean, if I type "candy" in textbox1, I want label1
to "look" through column A of Sheet2 to find the cell with the word
"candy" in it, then label1 displays the value of the cell to the right
of the cell with the word "candy". if there is no word "candy" in
column A of Sheet2, then label1 should display "not found"

How would i begin to code this....under what Sub?

The above is a fundamental example of what i'm trying to do, in the
real practice, i'm going to enter product ID's in the textbox, and the
label is supposed to let me know if it actually is a valid product ID
as i type it in.

Thanks in advance for any and all help


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default simple VBA question

huh

--
Message posted from http://www.ExcelForum.com

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
IF formula-simple question; simple operator Rich D Excel Discussion (Misc queries) 4 December 6th 07 03:36 PM
Simple Simple Excel usage question BookerW Excel Discussion (Misc queries) 1 June 23rd 05 10:06 PM
simple question, hopefully a simple answer! Matt B Excel Programming 5 January 13th 04 08:43 PM
A simple question pancho[_11_] Excel Programming 0 July 25th 03 04:43 PM
A simple question Kirk[_2_] Excel Programming 0 July 25th 03 04:38 PM


All times are GMT +1. The time now is 01:21 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"