+ Reply to Thread
Results 1 to 5 of 5

Set up Macro to export as CSV file

  1. #1
    Registered User
    Join Date
    11-18-2008
    Location
    Dallas
    Posts
    67

    Set up Macro to export as CSV file

    I need to set up a Macro in excel that will take range ("a1:f16") and export as a CSV file, how do I do this?

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Set up Macro to export as CSV file

    Record a macro. Then copy the range, open a blank xls, and then File > SaveAs and pick the CSV format.

  3. #3
    Registered User
    Join Date
    11-18-2008
    Location
    Dallas
    Posts
    67

    Re: Set up Macro to export as CSV file

    Thank you Mr. Hobson

  4. #4
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: Set up Macro to export as CSV file

    If you are looking for code to do this, then this might work...

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-15-2007
    Posts
    18

    Re: Set up Macro to export as CSV file

    Hi There,

    sorry to jump on an old post, ive found this post and i am looking to use this macro to export a worksheet to csv which works great however it seems to add a blank line to the end of the CSV file which i need to find a way to stop it from doing this as the blank line corrupts the import of the file in the program im trying to get the data into.

    thanks in advance
    Last edited by sysadmin; 03-07-2011 at 12:58 PM.

+ 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