Consulting

Results 1 to 6 of 6

Thread: Solved: Remove ' from text

  1. #1
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location

    Solved: Remove ' from text

    At my company when we import data to Excel from our Database there is a leading ' on every cell. If you do a texttocolumns it will get rid of the ' in front of any numbers but not in front of any text. You also can not do a find and replace ' with a blank. Does anyone know how to get rid of the ' in front of the text? we tried trim and clean functions. Please help, it is annoying.
    Thank You,
    Daniel Blois
    http://studenthacker.blogspot.com/

  2. #2
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    Are you just hitting import accept accept accept etc and not paying attention to the type of data imported? This happens if excel tries to preserve your data.

  3. #3
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    Also check the KB. This here thanks to ZB is exactly what you're trying to do http://www.vbaexpress.com/kb/getarticle.php?kb_id=109

  4. #4
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location
    there is no choice with the way we import it. The DBMA exports it right to excel and gives no options for the type of data.
    Thank You,
    Daniel Blois
    http://studenthacker.blogspot.com/

  5. #5
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location
    that code worked. Thank you
    Thank You,
    Daniel Blois
    http://studenthacker.blogspot.com/

  6. #6
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    mark as solved bitte

Posting Permissions

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