+ Reply to Thread
Results 1 to 1 of 1

Removing leading apostrophe VBA

  1. #1
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Removing leading apostrophe VBA

    I work with a program called Primavera. The Excel export from the program adds an apostrophe to the beginning of every cell. I have tried several solutions that I could Google, but none of them were working for me. I tried cell.value = cell.text, pasting only values on top of the data, multiplying by 1, and text to columns. The text to columns worked the best, but I have over 32,000 rows with at least 10 columns. Doing that for so much data just wasn't good enough.

    I finally came up with this vba code that works in a flash. It removes the apostrophes for everything on the sheet. If you have any ideas for improving it, let me know. I'm just posting here to share in case anyone else has this same problem.

    Please Login or Register  to view this content.
    Last edited by nigelbloomy; 09-29-2015 at 01:46 PM. Reason: Added Value = Value
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

+ 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. Remove a leading Apostrophe
    By John Bates in forum Excel General
    Replies: 10
    Last Post: 09-09-2014, 07:41 AM
  2. [SOLVED] How to detect leading or trailing apostrophe and quote characters
    By kyjae in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2014, 07:55 AM
  3. [SOLVED] Need to convert number to text with leading apostrophe
    By jnadreau in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 06-19-2014, 08:07 PM
  4. [SOLVED] Leading Apostrophe, but no change in formating - Visual Basic
    By Zikato in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2012, 11:03 AM
  5. [SOLVED]Remove Leading Apostrophe
    By eyeball11 in forum Excel General
    Replies: 2
    Last Post: 02-20-2011, 09:20 PM
  6. iNSERT LEADING APOSTROPHE
    By uncreative in forum Excel General
    Replies: 3
    Last Post: 03-29-2006, 08:10 PM
  7. Double Quote Leading to Apostrophe Problem
    By ToferKing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2006, 11:45 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