Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default How to save excel worksheet in .txt format fast?

Hi all,

probably a very simple problem but I still do not know how to do it:

I need to save (via VBA) several worksheets from a rather big Excel
workbook, each one of them in as separate *.txt file. Currently this
is done by programmatically executing "Save As" command and selecting
"Save as type *.txt".

Now, this does the job OK but is rather slow and I need to repeat it
many times. Is there a way to export a single worksheet to *.txt
without saving a huge *.xls file ? Or any other way to make the
procedure run faster?

Thank you!

Max

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default How to save excel worksheet in .txt format fast?

Using the Macro Recorder I produced:
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\XlsFileSavedAsText.txt", _
FileFormat:=xlText, CreateBackup:=False



"MaxS" wrote in message
oups.com:

Hi all,

probably a very simple problem but I still do not know how to do it:

I need to save (via VBA) several worksheets from a rather big Excel
workbook, each one of them in as separate *.txt file. Currently this
is done by programmatically executing "Save As" command and selecting
"Save as type *.txt".

Now, this does the job OK but is rather slow and I need to repeat it
many times. Is there a way to export a single worksheet to *.txt
without saving a huge *.xls file ? Or any other way to make the
procedure run faster?

Thank you!

Max


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default How to save excel worksheet in .txt format fast?

Thanks Jim.

I am currently doing exactly what you mentioned in your suggestion but
it is slow.
Was wondering if there are other ways..


Jim May wrote:
Using the Macro Recorder I produced:
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\XlsFileSavedAsText.txt", _
FileFormat:=xlText, CreateBackup:=False



"MaxS" wrote in message
oups.com:

Hi all,

probably a very simple problem but I still do not know how to do it:

I need to save (via VBA) several worksheets from a rather big Excel
workbook, each one of them in as separate *.txt file. Currently this
is done by programmatically executing "Save As" command and selecting
"Save as type *.txt".

Now, this does the job OK but is rather slow and I need to repeat it
many times. Is there a way to export a single worksheet to *.txt
without saving a huge *.xls file ? Or any other way to make the
procedure run faster?

Thank you!

Max


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Fast Save jswalsh33 Excel Discussion (Misc queries) 4 February 2nd 09 04:17 PM
Save as file format excel worksheet 4.0 in Microsoft excel 2007 Saria Excel Discussion (Misc queries) 1 July 14th 08 11:39 AM
fast way creating multiple worksheets with same format in excel? linikoo Excel Discussion (Misc queries) 2 March 19th 08 03:20 PM
how to fast format cells? sql_dba Excel Discussion (Misc queries) 3 August 14th 06 08:40 PM
How to save worksheet in .cvs format? Carlannie Excel Discussion (Misc queries) 1 April 21st 05 07:19 PM


All times are GMT +1. The time now is 02:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"