+ Reply to Thread
Results 1 to 6 of 6

Need UDF to Replace Quotation marks and apostrophe's

  1. #1
    Registered User
    Join Date
    07-01-2020
    Location
    Riyadh
    MS-Off Ver
    2016
    Posts
    20

    Need UDF to Replace Quotation marks and apostrophe's

    Dear Experts, I need a UDF please:

    Required:

    If quotation mark (") comes after a number, change to "IN" and if it comes before a number, change to space
    If apostrophe (') comes between two numbers, change to "FT" and if quotation mark (") or apostrophe (') comes before or after alpha character, replace with a space.

    Thank you!
    Attached Files Attached Files

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

    Re: Need UDF to Replace Quotation marks and apostrophe's

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

  3. #3
    Registered User
    Join Date
    07-01-2020
    Location
    Riyadh
    MS-Off Ver
    2016
    Posts
    20

    Re: Need UDF to Replace Quotation marks and apostrophe's

    I need to add that if " comes after alpha character and before a space, it will be removed or replaced by a space please.
    Thanks

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

    Re: Need UDF to Replace Quotation marks and apostrophe's

    You said
    Quote Originally Posted by RDA Di View Post
    if quotation mark (") or apostrophe (') comes before or after alpha character, replace with a space.
    What 's the difference?

  5. #5
    Valued Forum Contributor
    Join Date
    02-14-2019
    Location
    Turkiye
    MS-Off Ver
    2010 - 64 Bit on Windows-11 (24 H2) 64 Bit
    Posts
    1,186

    Re: Need UDF to Replace Quotation marks and apostrophe's

    May be change the line just before the "End With" line, to:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-01-2020
    Location
    Riyadh
    MS-Off Ver
    2016
    Posts
    20

    Re: Need UDF to Replace Quotation marks and apostrophe's

    Works great! Thank you so much:-)

+ 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. [SOLVED] VBA to replace quotation marks in .txt file from Excel
    By shaspos60 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-13-2017, 04:22 AM
  2. Quotation Marks Getting in the Way
    By Vladamir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2012, 06:50 PM
  3. Quotation Marks?
    By LinearChaos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2006, 05:37 PM
  4. without quotation marks?
    By jfazz in forum Excel General
    Replies: 1
    Last Post: 03-02-2006, 12:45 PM
  5. Quotation Marks - When and What??
    By heski in forum Excel General
    Replies: 2
    Last Post: 02-07-2006, 08:45 AM
  6. quotation marks
    By JohnF in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-05-2006, 05:35 PM
  7. Quotation Marks
    By kosecki in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-31-2005, 10:05 AM

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