+ Reply to Thread
Results 1 to 3 of 3

Save each sheet as a text file

  1. #1
    Registered User
    Join Date
    02-26-2016
    Location
    Denmark
    MS-Off Ver
    MS 15
    Posts
    4

    Save each sheet as a text file

    Hi all

    I hope you guys can help me with this one.

    I have a workbook with a number of sheets which I want to save as text files. I have tried google it, but none of the really worked.

    Basically in pseudo code the code should do the following:

    //
    For each sheet in workbook

    Save sheet as text file (name should be sheet name and same location as workbook)

    Next sheet

    //

    Please note I have a lot of (1 million active cells per sheet) data, so the code should be efficient.
    I know this seems really easy, but somehow it doesn't work for me.

    Please help me.

    Thanks Simon

  2. #2
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Save each sheet as a text file

    Please Login or Register  to view this content.
    Frob first, tweak later

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Save each sheet as a text file

    Cross post at this link
    http://www.vbaexpress.com/forum/show...as-a-text-file
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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] Save selected print area as a pdf file using the text from a specific cells as the file na
    By A440 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2015, 04:14 PM
  2. [SOLVED] How to save the sheet in text file through VBA?
    By JayeshG in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2015, 06:30 PM
  3. VBA to Save a Single Sheet as a Tab Delimited Text File
    By mattmc419 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2014, 03:34 PM
  4. [SOLVED] VBA to save active sheet as new file with save as option
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-14-2013, 10:54 AM
  5. Unable to Save a Excel 2007 Work Sheet containing UTF-8 Data as TEXT file
    By sundharesanr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2013, 12:34 PM
  6. Macros To Save Worksheet as New xlsx file & Save Another Worksheet As A Text File
    By KeithT in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-16-2011, 05:13 PM
  7. Save sheet as fixed length (flat) text file
    By Tim Donovan in forum Excel General
    Replies: 0
    Last Post: 05-24-2005, 03:08 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