+ Reply to Thread
Results 1 to 4 of 4

Macro to remove " around a string of data

  1. #1
    Registered User
    Join Date
    01-23-2013
    Location
    Michigan,US
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    2

    Unhappy Macro to remove " around a string of data

    Hello,
    I need a macro to remove " marks that are appearing around strings of data. I have a spreadsheet that contains multiple columns of text and when I save the speadsheet as a .txt file some of the strings have " marks around them. The " marks are not visible when the data is viewed in Excel. When the file is opened in Notepad the " marks are visible. I need to get rid of all " marks in the spreadsheet. The " marks are not allowing the .txt file to be imported. Help!!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro to remove " around a string of data

    Hi,

    You'll need to upload your workbook so that we can see the request in context. Stating the obvious but have you tried using Find and Replace to find a " mark and replace it with a null value?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    NJ
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro to remove " around a string of data

    You don't need macro, just remove using Excel Find/Replace tool

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Macro to remove " around a string of data

    Have you tried doing Find & Replace (Ctrl-H) in Notepad? CTRL-A first to select everything, then CTRL-H:

    FIND - type "
    REPLACE WITH - leave blank
    Click Replace All, then save the file with CTRL-S.

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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