ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   TXT format (https://www.excelbanter.com/excel-programming/325331-txt-format.html)

Tom

TXT format
 
Hi,

how can I save sheets from VBA in .txt format withou any TAB delimited ?

Tom



Harald Staff

TXT format
 
Hi Tom

See Chip's code at
http://www.cpearson.com/excel/imptext.htm
scroll down to the Export part of the page.

HTH. Best wishes Harald

"Tom" skrev i melding
...
Hi,

how can I save sheets from VBA in .txt format withou any TAB delimited ?

Tom





Tom Ogilvy

TXT format
 
activeworkbook.SaveAs "C:\Mybook.prn", Fileformat:=xlTextPrinter

--
Regards,
Tom Ogilvy

"Tom" wrote in message
...
Hi,

how can I save sheets from VBA in .txt format withou any TAB delimited ?

Tom





K Dales[_2_]

TXT format
 
If you do a Workbook.SaveAs you can specify the file format you want. I
assume you want either xlTextMSDOS, xlTextWindows, or xlUnicodeText. The
simple form is:
ThisWorkbook.SaveAs("SaveFile.txt", xlTextWindows)
But for full details see Excel VBA help on the SaveAs method.

"Tom" wrote:

Hi,

how can I save sheets from VBA in .txt format withou any TAB delimited ?

Tom




Tom

TXT format
 
Dosnt work, there are still TABs.


"K Dales" wrote in message
...
If you do a Workbook.SaveAs you can specify the file format you want. I
assume you want either xlTextMSDOS, xlTextWindows, or xlUnicodeText. The
simple form is:
ThisWorkbook.SaveAs("SaveFile.txt", xlTextWindows)
But for full details see Excel VBA help on the SaveAs method.

"Tom" wrote:

Hi,

how can I save sheets from VBA in .txt format withou any TAB delimited ?

Tom







All times are GMT +1. The time now is 10:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com