+ Reply to Thread
Results 1 to 3 of 3

I am having issues commas in a row that is saved in csv format

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    New york
    MS-Off Ver
    Excel 2003
    Posts
    45

    I am having issues commas in a row that is saved in csv format

    I Created a macro that saves an excel file to CSV format this macro combines two reports into one. After the second report is added to the file there is a row of commas that is added in between both reports. I need to have this row of commas removed before I can send it to our back office to be processed could someone explain why I have this added row of commas. I was able to resave it in 2003 which would fix the problem now that the file is created using 2010 this solution is not working please help I added the file in excel as the forum doesn't allow csv files. Sorry I now added the Macro to this post.
    Attached Files Attached Files
    Last edited by Darthzo; 03-20-2013 at 10:25 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,631

    Re: I am having issues commas in a row that is saved in csv format

    Well, you didn't post your macro.
    Hints:
    1.? range("a1").CurrentRegion.Rows.Count returns 7 for the sample given, and
    2. ?cells(rows.Count,1).end(xlup).row returns 11

    Since the last row (11) is > the range A1 current region row, expect row 8 to be empty. Use
    row("A"& x).entirerow.delete, where x=currentregion row count +1
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-20-2012
    Location
    New york
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: I am having issues commas in a row that is saved in csv format

    Thank you protonLeah the issue is I need the line to separate the report just without the 5 commas that are generated from the macro.

+ 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