Results 1 to 4 of 4

VBA to save multiple worksheets as separate CSV files using name of worksheet

Threaded View

Yg74 VBA to save multiple... 09-20-2012, 08:14 AM
mike7952 Re: VBA to save multiple... 09-20-2012, 08:44 AM
Yg74 Re: VBA to save multiple... 09-20-2012, 08:52 AM
arlu1201 Re: VBA to save multiple... 09-20-2012, 10:55 AM
  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    london, England
    MS-Off Ver
    Excel 2010
    Posts
    7

    VBA to save multiple worksheets as separate CSV files using name of worksheet

    Hi

    I tried to adopt Martin's code (from a separate thread) as my requirement was very similar. I have data in the following format per tab in excel 2010

    AC ME ACME CO
    Date PX_OPEN PX_HIGH PX_LOW PX_LAST
    27/09/2011 1108.23 1141.13 1075.33 1108.23
    28/09/2011 1130.33 1163.47 1097.19 1130.33
    29/09/2011 1145.81 1180.21 1111.40 1145.81

    i need to save each tab in excel as a .CSV file in a folder (any name will do). The number of tab's(worksheet's) will vary - anything from 1 to N tabs. So basically the vba would need to create N CSV files. Also - as the tab data will be updated daily - i would need to overwrite the old .CSV files.

    Any help - will be greatly appreciated.

    Many thanks

    ACTUALLY - APOLOGIES. I HAVE SORTED IT NOW. It was just to change the "CSV" name to "NAME" (as per spreadsheet)
    Last edited by Yg74; 09-20-2012 at 08:27 AM. Reason: fixed

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