+ Reply to Thread
Results 1 to 2 of 2

Issues with vba macro while creating csv files

  1. #1
    Registered User
    Join Date
    06-17-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Issues with vba macro while creating csv files

    Hello,

    I am not a good programmer in VBA. I have a task to -
    1. [1] Read Input sheet from xls (rows 2 to 101). Provide a button.
      [2] On Button click create 2 files. One csv and another backup files for the selected columns (column 1 and columns from 3 to 12).
      [3] Add Header and Footer for the csv files
      [4] Clear the content of the Input sheet (row 2 to 101).

    As mentioned I am not good programmer so I am not able to understand what is wrong in my code. I am facing a problem - If input sheet holds 10 records then the csv file getting generated holds 10 records followed by 90 empty comma separated records.

    Can experts please help me with this - Code attached? I tried to reduce the code as much as possible. There are some updates which may look odd but then they are because I tried every other option to solve the problem in my capacity.

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Issues with vba macro while creating csv files

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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