ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Program to resave a collection of .xls files into tab separated .txt files (https://www.excelbanter.com/excel-programming/363944-program-resave-collection-xls-files-into-tab-separated-txt-files.html)

JH[_2_]

Program to resave a collection of .xls files into tab separated .txt files
 
Would it be possible to write a vba or vb program that when executed would
resave
a list of .xls files into tab separated .txt files? Right now I do this
manually. I tried doing
a record/playback macro but that's not the way to go. Thanks very much for
any
assistance!

Jeff H.
jhoward1 [at] nc [dot] [rr] dot [com]



AA2e72E

Program to resave a collection of .xls files into tab separated .t
 
You can do this using an ADO (from VBA) recordset object and its GetString()
method to write to TAB delimited files.



JH[_2_]

Program to resave a collection of .xls files into tab separated .t
 
I was hoping I could use the built in feature in Excel that allows
to Save As without reading and writing all of the records myself.

I saw some threads that indicated a method to do a Save As but I couldn't
find a define to indicate tab separated values.

Jeff
"AA2e72E" wrote in message
...
You can do this using an ADO (from VBA) recordset object and its
GetString()
method to write to TAB delimited files.






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

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