Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel,microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Sorry to raise this issue again, but I'm still having trouble using the IS functions, here's the latest manifestation (running Excel 97) This formula works perfectly fine in my spreadsheet: =IF( ISNA(MATCH(0,A1:H1,0)),"Zero NOT found","Zero found") However, a similar statement in VBA code generates an error message if '0' is not present (e.g., N/A), but works if '0' is present. Set rng = Range("A1:H1") If WorksheetFunction.IsNA(WorksheetFunction.Match(0, rng, 0)) Then MsgBox "Zero NOT found": Exit Sub Else MsgBox "Zero found" End If Here's the error message: Run-time error '1004': Unable to get the Match property of the WorksheetFunction class. Am I doing something wrong - can't seem to spot it? Appreciate any suggestions. Thanks, Dave |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple functions, conditional functions | Excel Worksheet Functions | |||
How to convert cell formula functions to code functions | Excel Discussion (Misc queries) | |||
efficiency: database functions vs. math functions vs. array formula | Excel Discussion (Misc queries) | |||
Looking for a site with functions that substitute the ATP functions | Excel Worksheet Functions | |||
excel functions and User defined functions | Excel Programming |