P
Paul D Byrne
Hi,
I am trying to test a string in VBA to see if it exists using the following :
Iserror(Application.WorksheetFunction.Search("*Value*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("*Value*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.
I am trying to test a string in VBA to see if it exists using the following :
Iserror(Application.WorksheetFunction.Search("*Value*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("*Value*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.