Re: Substring check within VBA
- From: "Bob Phillips" <bob.phillips@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 6 Aug 2005 15:02:02 +0100
You can also use
If str2 like "*" & str1 & "*" Then
....
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Gary's Student" <GarysStudent@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8B0AF671-A4BA-4B43-9036-B6425DE80C85@xxxxxxxxxxxxxxxx
> If Str1 and Str2 are strings, is there a function or simple coding within
VBA
> to return TRUE if Str1 is a substring of Str2, otherwise FALSE?
>
> Thanks in advance
> --
> Gary's Student
.
- References:
- Substring check within VBA
- From: Gary's Student
- Substring check within VBA
- Prev by Date: Re: goto function
- Next by Date: Showing criteria in custom filter
- Previous by thread: Re: Substring check within VBA
- Next by thread: One Excel Form for All worksheets Lists
- Index(es):
Relevant Pages
|