Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In VBA, go to the Tools menu, choose References, and scroll down to and
check "Microsoft VBScript Regular Expressions". -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com (email address is on the web site) "sl" wrote in message oups.com... 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! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
wont the ".Value" do the same ?
"sl" wrote in message oups.com... 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! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Get rid of with regular expressions | Excel Discussion (Misc queries) | |||
Regular expressions in VB | Excel Discussion (Misc queries) | |||
Regular expressions | Excel Programming | |||
Regular Expressions in VBA? | Excel Programming | |||
VBA and Regular expressions | Excel Programming |