+ Reply to Thread
Results 1 to 3 of 3

Need a macro to export data to a csv file

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need a macro to export data to a csv file

    Hi,

    I am not vary familiar with VB and have search the forum to no avail.

    I have a spreadsheet that users will be entering data onto.
    Once they are done, they will need to export the data to a csv file and drop it into a shared folder.

    To make the task simple, I like to have a macro for the users to export the file.

    The spreadsheet contains four columns with alpha numeric information.
    The last column is a date value (yyyy-mm-dd)

    The file should be exported with the following format:
    - columns are separated by either '|' or comma
    - if separated by comma, double quotes is require around each field.
    - the file will be saved to a specific loacation (ie c:\temp\)
    - the file name should be (filename_yyyymmdd_hh24miss)

    Any help is greatly appreciated.

    Nathan

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Need a macro to export data to a csv file

    attach please a sample file and desired csv
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    10-14-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need a macro to export data to a csv file

    Hi Patel,

    Sorry for such late response.
    The expected output will look something like this.

    Title A|Title B|Title C|Title D
    123456789|A1234|1.234.234|2013-10-01
    123456789|A1234|1.234.234|2013-10-01
    123456789|A1234|1.234.234|2013-10-01

    The file name would be like 'filename_yyyymmdd_hh24miss.txt'

    Your help is greatly appreciated.

    Nathan

+ 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. Macro to export specific range of data to text file for each worksheet
    By sonofamonkey10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-30-2013, 05:43 PM
  2. Build a Macro that can go online and export a data file to excel?
    By WillyBanks in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2013, 10:58 PM
  3. I would need a macro to export data from base example workbook to export worbook
    By slato8 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2012, 11:21 AM
  4. Macro to export webpage data into the activesheet rather than a new file
    By naqviimran in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-19-2011, 12:21 AM
  5. [SOLVED] How do I import text file, analyze data, export results, open next file
    By Geoffro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2005, 04:06 PM

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