+ Reply to Thread
Results 1 to 3 of 3

Need MS Excel macro to convert multiple sheets of an excel file to single txt file

  1. #1
    Registered User
    Join Date
    08-08-2014
    Location
    India
    MS-Off Ver
    2003
    Posts
    1

    Need MS Excel macro to convert multiple sheets of an excel file to single txt file

    We have a excel .xls data file having numerous sheets each containing maximum number of rows (65000). We want to generate a separate text or csv file to include data present in all the sheets together. The data in each sheet is of identical format. Could anyone help with a suitable macro code which can generate such file.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Need MS Excel macro to convert multiple sheets of an excel file to single txt file

    Welcome to the board!

    Use this code on this page, but modify it like this. This will get all sheets.

    Please Login or Register  to view this content.
    David
    (*) Reputation points appreciated.

  3. #3
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Need MS Excel macro to convert multiple sheets of an excel file to single txt file

    Hi..

    That's potentially a LOT of values getting written to the text file..

    How many columns in each sheet and how many sheets?

    The reason i ask is I tried for an array based solution.. but.. the time it will take to execute will depend on how many columns your sheets contain and how many sheets..

    You could try this.. it just might take a while depending on your answer to my questions above.. change the range used to suit..

    Please Login or Register  to view this content.

+ 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. Split excel file having multipl sheets into multiple excel file based on column
    By Shaharyarwatto in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2014, 05:02 AM
  2. Please help to get a macro to convert without format file to excel file.
    By excel_boy1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2013, 12:27 PM
  3. Macro to convert comma delimited csv file to excel file??
    By sanjeevpandey in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-15-2012, 05:31 AM
  4. Replies: 1
    Last Post: 10-04-2012, 08:11 PM
  5. convert multi-sheets file to single-sheet files
    By yahata in forum Excel General
    Replies: 3
    Last Post: 04-22-2007, 06:54 AM

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