Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Regular Expressions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sl - 22 Jan 2007 23:12 GMT
So I am new to VB Macros in Excel and I swear I came across some method
called .contains where if a cell contained the string or regular
expression you were searching for it returned a boolean of True or
false if it didn't find it.

Now that I am returning to my notes I can't find it, nor can I find it
in books or on-line.

Has anyone heard of this or is there a better way to check if a cell's
contents conform to a particular pattern?

Thanks!
Chip Pearson - 22 Jan 2007 23:27 GMT
In VBA, go to the Tools menu, choose References, and scroll down to and
check "Microsoft VBScript Regular Expressions".

Signature

Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

> So I am new to VB Macros in Excel and I swear I came across some method
> called .contains where if a cell contained the string or regular
[quoted text clipped - 8 lines]
>
> Thanks!
Corey - 22 Jan 2007 23:27 GMT
wont the ".Value" do the same ?
So I am new to VB Macros in Excel and I swear I came across some method
called .contains where if a cell contained the string or regular
expression you were searching for it returned a boolean of True or
false if it didn't find it.

Now that I am returning to my notes I can't find it, nor can I find it
in books or on-line.

Has anyone heard of this or is there a better way to check if a cell's
contents conform to a particular pattern?

Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.