Iserror with Search
- From: Paul D Byrne <Paul D Byrne@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 17:34:27 -0700
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.
.
- Follow-Ups:
- Re: Iserror with Search
- From: Dave Peterson
- Re: Iserror with Search
- Prev by Date: RE: Excel process slows down
- Next by Date: Re: Iserror with Search
- Previous by thread: Re: Auto List Members
- Next by thread: Re: Iserror with Search
- Index(es):