Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
sl sl is offline
external usenet poster
 
Posts: 2
Default Regular Expressions

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Regular Expressions

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Regular Expressions

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
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
Get rid of with regular expressions Howdy Excel Discussion (Misc queries) 1 January 18th 10 07:42 PM
Regular expressions in VB FiluDlidu Excel Discussion (Misc queries) 4 March 21st 08 01:10 AM
Regular expressions JeffMelton Excel Programming 2 March 1st 06 12:52 AM
Regular Expressions in VBA? Rob[_23_] Excel Programming 13 February 10th 05 05:34 AM
VBA and Regular expressions Friedrich Muecke Excel Programming 3 October 3rd 03 01:46 AM


All times are GMT +1. The time now is 10:07 PM.

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"