+ Reply to Thread
Results 1 to 3 of 3

regular expression in vba is not working

  1. #1
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    regular expression in vba is not working

    Hey all,

    I have this VBA:

    Please Login or Register  to view this content.
    Despite having this in a cell:
    ROGELIO P DIAZ &W CLUADIA


    It still alerts "false", even though that name matches the expression. It should be alerting "true". There is no space after CLUADIA and there are no double spaces anywhere. Not sure what problem is.

    Thanks for response

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: regular expression in vba is not working

    that works fine for me
    i put ROGELIO P DIAZ &W CLUADIA in cell a7
    run macro i get 6 falses then a true
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: regular expression in vba is not working

    I test it out now and it does work. Im not sure why it wasnt before

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1