pattern matching w/o using VBScript's RegExp Object

  • Thread starter Thread starter Chris W.
  • Start date Start date
C

Chris W.

Hi, Someone had given me a routine to test for invalid
emails using The VBscript RegExp Object. It works great,
but when I try to migrate it to my enduser they get a
Compile error. when I comment out the reference to the
Vbscript object, No compile error. Can anyone tell me if
there is a compatible functionality available for pattern
matching in VBA, or does anyone have a routine in VBA that
filters out invalid emails. Thank you!!!
 
Hi,

Early of late binding.

If early, try late
==> in place of Set RE = New Regexp
use Set RE = CreateObject("vbscript.regexp")

And define (Dim) your RE as OBJECT s.

Regards,

Daniel M.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top