+ Reply to Thread
Results 1 to 3 of 3

Save Multiple Excel Sheets from a Workbook into Multiple Text Macintosh Format VBA

Hybrid View

ashokpatidar Save Multiple Excel Sheets... 10-04-2013, 03:36 PM
slx Re: Save Multiple Excel... 10-04-2013, 05:00 PM
ashokpatidar Re: Save Multiple Excel... 10-05-2013, 10:04 PM
  1. #1
    Registered User
    Join Date
    05-09-2013
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    10

    Question Save Multiple Excel Sheets from a Workbook into Multiple Text Macintosh Format VBA

    Hi All,

    I have a VBA code that successfully saved multiple excel sheets into multiple Text Delimited files. Here is the VBA Code:

    Sub saveSheets()
    Dim mySheet As Worksheet
    Dim newName As String
    For Each mySheet In Sheets
        newName = mySheet.Name
        mySheet.Copy
        ActiveWorkbook.SaveAs Filename:=newName, FileFormat:=xlText
        ActiveWorkbook.Close False
    Next
    End Sub
    This code has fruitfully saved all text delimited files from a workbook into a folder.

    But I want to save all these text files into Text Macintosh format. I am pretty new to VBA and I have found the above VBA code in ExcelForum.com only.

    Can someone tell me what changes in the code would provide me Text Macintosh format files?

    Thanks in Advance.

  2. #2
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Save Multiple Excel Sheets from a Workbook into Multiple Text Macintosh Format VBA

    FileFormat:=xlCSVMac

  3. #3
    Registered User
    Join Date
    05-09-2013
    Location
    Mysore
    MS-Off Ver
    Excel 2007
    Posts
    10

    Smile Re: Save Multiple Excel Sheets from a Workbook into Multiple Text Macintosh Format VBA

    Quote Originally Posted by slx View Post
    FileFormat:=xlCSVMac
    Thank you so much for your help. By the way FileFormat:=xlCSVMac generated CSV files. However, I have got a clue from your provided answer. I have just alter the file name a bit i.e. FileFormat:=xlTextMac, and it has produced the desire results I wanted.

    Thank you again.

+ 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. [SOLVED] Macro to copy cells from multiple sheets in workbook to multiple sheets in other workbook
    By KeithMale in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 05:37 PM
  2. [SOLVED] Save Multiple Sheets as Text File // Abliity to Choose Directory for Saving Location
    By nhi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2013, 01:19 PM
  3. Help importing multiple text files to individual sheets in an excel workbook
    By cham.miller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2010, 06:55 PM
  4. Populating multiple text boxes from different workbook sheets vb
    By kants83 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2010, 08:11 PM
  5. Multiple sheets in single workbook into new files only using cell format/values
    By MacApple in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2008, 04:00 PM

Tags for this Thread

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