+ Reply to Thread
Results 1 to 2 of 2

Adding a CSV file always adds an extra column

  1. #1
    Forum Contributor
    Join Date
    02-26-2012
    Location
    Ottawa, ON
    MS-Off Ver
    Excel 2007
    Posts
    129

    Adding a CSV file always adds an extra column

    Hello,

    I wrote some code that imports csv files into an excel sheet which works fine. I wrote the macro so that if it is clicked again, new files can be imported "on top" of the old files (deleted the csv range). My new problem is that it adds a new column after the csv file which I don't want. Initially I deleted the column in my code, but it does mess up some of my calculations regardless that weren't written using vba. I have my calculations two columns over from the last column of the csv file, but every time I run my code, it adds an additional column.

    How do I get it to stop adding a new column?

    Thanks!

    Please Login or Register  to view this content.
    Last edited by NatalieEC; 12-18-2014 at 02:06 PM.

  2. #2
    Forum Contributor
    Join Date
    02-26-2012
    Location
    Ottawa, ON
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Adding a CSV file always adds an extra column

    I think I solved it...

    In my function that clears the old csv file, I cleared the added column but didn't delete it. Why would that prevent an additional column being added?

    Here is the other function

    Please Login or Register  to view this content.

+ 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] Adding an extra column in a 2D array
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-24-2014, 07:27 AM
  2. [SOLVED] For Next Loop adds an extra #N/A?
    By mcclanat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2013, 06:01 PM
  3. [SOLVED] adding target lines into graphs without adding an extra column of data
    By ea223 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-16-2013, 12:32 PM
  4. Replies: 2
    Last Post: 12-14-2010, 10:20 AM
  5. Help!! MailMerge Adds hidden extra page
    By petreli in forum Word Formatting & General
    Replies: 1
    Last Post: 12-14-2009, 08:55 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