![]() |
"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". |
"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". |
All times are GMT +1. The time now is 02:04 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com