+ Reply to Thread
Results 1 to 3 of 3

ByRef type Mismatch error with RegEx

  1. #1
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    ByRef type Mismatch error with RegEx

    Hi All,

    I'm getting a "ByRef argument type mismatch" error in my code. I don't quite understand how this is happening, since I thought the Regular Expression will still work with a string. Below are the relevant snippets of code.


    Please Login or Register  to view this content.
    Wondering if someone can help me out. This place has always been great.

    Thanks!
    1980

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,882

    Re: ByRef type Mismatch error with RegEx

    Try changing below line...
    Please Login or Register  to view this content.
    To...
    Please Login or Register  to view this content.
    Edit: And dim FlexValue as string.

  3. #3
    Forum Contributor
    Join Date
    09-13-2011
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    111

    Re: ByRef type Mismatch error with RegEx

    Ah, crap. Thanks! I didn't want to use a different variable for dates, but it looks like I'm going to have to.

    Thanks for the help.

    1980

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. byref argument type mismatch error in function
    By Aphis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-29-2015, 05:46 AM
  2. [SOLVED] "ByRef argument type mismatch error" trying to use my first UDF
    By capson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-23-2014, 08:46 PM
  3. ByRef Arg Type MisMatch
    By mgw1138 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-12-2014, 10:00 PM
  4. [SOLVED] ByRef argument type mismatch
    By Lloyd Blankfein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-06-2012, 07:26 AM
  5. Error passing element of string array get ByRef argument type mismatch
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-17-2011, 02:59 PM
  6. "ByRef argument type mismatch" Error
    By Baapi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2005, 08:05 PM
  7. ByRef argument type mismatch error?
    By sermest in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-17-2005, 02:05 PM

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