sqlrage
(SQLRage)
1
Description
Drag xlsx files onto the script with windows explorer and it will make a csv file with the same name and info.
Edit: After needing to save a txt, I found all you have to do is replace csv with txt and it will work fine.
Source Code
Set objArgs = WScript.Arguments
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
FullName = objArgs(I)
FileName = Left(objArgs(I), InstrRev(objArgs(I), ".") )
Set objExcel = CreateObject("Excel.application")
set objExcelBook = objExcel.Workbooks.Open(FullName)
objExcel.application.visible=false
objExcel.application.displayalerts=false
objExcelBook.SaveAs FileName & "csv", 23
objExcel.Application.Quit
objExcel.Quit
Set objExcel = Nothing
set objExcelBook = Nothing
Next