Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
"IN" comparison operator
I know VBA doesn't have an "IN" comparison operator like many languages. I
was wondering if there is a function that has been written that emulates "IN". |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
"IN" comparison operator
Sub Tester1()
v = Array("dog", "cat", "barn", "house", "home") res = Application.Match("house", v, 0) If Not IsError(res) Then MsgBox "House is item number: " & res Else MsgBox "House not found" End If End Sub -- Regards, Tom Ogilvy "Jared" wrote in message ... I know VBA doesn't have an "IN" comparison operator like many languages. I was wondering if there is a function that has been written that emulates "IN". |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Text "comparison" operator for "contains" used in an "IF" Function | Excel Worksheet Functions | |||
Comparison Operator "" NOT "=" | Excel Discussion (Misc queries) | |||
Is it possible to apply IF's to "operator" result.. | Excel Discussion (Misc queries) | |||
program stuck at "Save Cancelled by Operator" | Excel Discussion (Misc queries) | |||
Excel no longer allows new formulas with division "/" operator | Excel Programming |