Results 1 to 2 of 2
  1. #1
    Lounger
    Join Date
    Nov 2013
    Posts
    40
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Save all Sheets as CSV

    Hello,

    I have a Workbook and multiple sheets around 30 (Tabs) need to save all of them with their tab names as CSV format to a particular folder.

    Thanks in advance.

  2. #2
    3 Star Lounger
    Join Date
    Nov 2002
    Location
    New York, New York, USA
    Posts
    266
    Thanks
    0
    Thanked 19 Times in 19 Posts
    Dear Carmine:

    Something like this
    Code:
    Sub TestIt()
    Application.EnableEvents = False
    yyy = ActiveSheet.Range("C10").Value 'for this example ActiveSheet C10 has Folder Path
    For Each sht In Worksheets
        sht.Activate
        ZZZ = sht.Name
        ActiveWorkbook.SaveAs Filename:= _
            yyy & ZZZ & ".cvs", FileFormat:=xlCSV, _
           CreateBackup:=False
       Next sht
       
    Application.EnableEvents = True
    End Sub
    Hope this helps

    Regards,

    DuthieT
    Last edited by RetiredGeek; 2016-02-18 at 12:29. Reason: Added Code Tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •