LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Searching for a substring inside another string - there has to be an easier way!

On 15 Sep 2006 07:21:49 -0700, "Morris" wrote:

That's absolutely perfect!!

I didn't realize there are regular expressions in VBA - and I like it,
evn though it needs an extra reference added.

Can you point me to any good help file? Website showing the
capabilities?



Glad to help. Thanks for the feedback.

There's some stuff on the Microsoft web site with regard to the VBA flavor.

http://support.microsoft.com/default...02&Product=vbb

http://msdn.microsoft.com/library/de...63906a7353.asp

There are some limitations compared with Perl, for example. If I recall
correctly, VBA does not implement look behind assertions.

Also, Laurent Longre has a free add-in, morefunc.xll, which can be obtained
from http://xcell05.free.fr/

Some of the functions are Regular Expression types that can be used either in a
worksheet or in VBA. The add-in is easily distributed with workbooks. It's
major limitation, which I am told is an *.xll limitation, is that the strings
can be no longer than 255 characters. (It DOES enable the look behind
assertions, however).


--ron
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching for a string of text inside a column Steve W. Excel Worksheet Functions 5 March 5th 09 04:52 PM
Substring to replace string Andrew Slentz[_2_] Excel Programming 3 June 11th 04 06:54 PM
Substring to replace string Andrew Slentz[_2_] Excel Programming 1 June 11th 04 04:51 PM
Searching for a substring in a range mrimah Excel Programming 0 May 2nd 04 11:18 AM
How to get rid of string which contain a substring like 'PO BOX'. dukejas[_4_] Excel Programming 2 November 11th 03 02:36 AM


All times are GMT +1. The time now is 01:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"