[EXCEL] Convert xls to txt (tab delimited)
Hello, trying to find a way to make the code I found below (that converts an xls to csv) to convert an xls file to a tab delimited text file. I've searched everywhere and can not find.
Please help!!! :D
Code:
if WScript.Arguments.Count < 2 Then
WScript.Echo "Error! Please specify the source path and the destination. Usage: XlsToCsv SourcePath.xls Destination.csv"
Wscript.Quit
End If
Dim oExcel
Set oExcel = CreateObject("Excel.Application")
Dim oBook
Set oBook = oExcel.Workbooks.Open(Wscript.Arguments.Item(0))
oBook.SaveAs WScript.Arguments.Item(1), 6
oBook.Close False
oExcel.Quit
WScript.Echo "Done"
Re: [EXCEL] Convert xls to txt (tab delimited)
bah sorry for the double post... i started another thread thinking the other one didnt get submitted.
Re: [EXCEL] Convert xls to txt (tab delimited)
No prob. It just needed to be approved as for any new member with 0 posts. ;)
Thread Closed
Original thread link - http://www.vbforums.com/showthread.php?t=657495