Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to test a string in VBA to see if it exists using the following : Iserror(Application.WorksheetFunction.Search("*Val ue*Date*", "System Date", 1)) If I use the msgbox in the immediate pane to see the result I get Run-time error '1004': Unable to get the Search property of the WorksheetFunction class However using the following: Iserror(Application.WorksheetFunction.Search("*Val ue*Date*", "Value Date", 1)) evaluates to 'False' - which is what I expect. Howcome the first statement does not evaluate to True? thanks, Paul B. PS : The 2nd parameter will be a variable in production - using the words is only for development. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If IsError Help | Excel Discussion (Misc queries) | |||
=IF(ISERROR(SEARCH("insurance",A125,1)),"","*") | Excel Worksheet Functions | |||
IsError error on Search | Excel Discussion (Misc queries) | |||
IF ISERROR | Excel Discussion (Misc queries) | |||
ISERROR - #NAME? | Excel Worksheet Functions |