+ Reply to Thread
Results 1 to 5 of 5

Regex Replacing Formulas: Issue with Special Characters

  1. #1
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Regex Replacing Formulas: Issue with Special Characters

    After hours of googling, I am still baffled about what seems like it should be a relatively simple fix. Please tell me why my code is not working and how to fix it. My best guess currently is that I am not correctly escaping special regex characters. The actual workbook contains sensitive data, but I've attached a simple sample that operates the same way.

    Thank you to whoever solves this. It has been quite the headache.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by k64; 03-21-2014 at 11:23 AM. Reason: New Sample

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    21,870

    Re: Regex Replacing Formulas: Issue with Special Characters

    See if this is how you wanted.
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Regex Replacing Formulas: Issue with Special Characters

    Thank you! That is farther than I got. I need it to be a little more flexible, because there are a couple types of formulas that include "RBC mmm YY". My goal is to simply replace each specific "RBC mmm YY" with an indirect version. I've provided another sample with a couple of different cases.

    I'm new to Regex. Would you mind telling me what the problem was and how you fixed it?

    Thank you

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    21,870

    Re: Regex Replacing Formulas: Issue with Special Characters

    If further question, it will be tomorrow.
    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Regex Replacing Formulas: Issue with Special Characters

    Thank you! It took a little modification, but that did the trick.

+ 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. Macro to replace European characters with non "special" English characters?
    By johanna0507 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-19-2012, 09:13 AM
  2. [SOLVED] REGEX to delete all non hex characters
    By creeves95833 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2012, 05:43 PM
  3. Replacing Special Characters when importing text
    By Bytor47 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-23-2009, 02:31 PM
  4. Special Characters in formulas
    By obrien2003 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2007, 01:16 PM
  5. Replacing characters
    By OhhAhh in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-03-2005, 09:06 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