Prev: On/Off control?
Next: RefEdit in UDF ?
From: TAN on 2 Feb 2010 17:21 I need to verify than an operator string (part number) input is valid from a predetermined listing of "acceptable" part numbers without getting #N/A error. Help!
From: Dave Peterson on 2 Feb 2010 17:28 Maybe you can use application.match() Dim res as variant 'could be an error dim myArr as variant dim myVal as variant 'could be a number or string myarr = array(1, 2, "abc", "def") myval = "abc" res = application.match(myval,myarr,0) if iserror(res) then 'not found else 'was found end if TAN wrote: > > I need to verify than an operator string (part number) input is valid from a > predetermined listing of "acceptable" part numbers without getting #N/A > error. Help! -- Dave Peterson
|
Pages: 1 Prev: On/Off control? Next: RefEdit in UDF ? |