![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
I'm trying to check a combobox entry to see if it appears in a range of cells and then set an action if there is a match. Basically I'm struggling to check the match.
e.g. if the text that appears in combobox cboClient.text also appears in range("C1:C100")I want to set an action. Does anyone have any ideas? Thanks Matt [ This Message was edited by: Matt on 2002-05-10 00:41 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Well.. you could use something like
Set Ans = Range("C1:C100").Find(What:=ComboBox1) If Ans Is Nothing then 'Not found else 'Found End If |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: England
Posts: 212
|
Thanks Juan
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|