Here is the line:
objExcel.ActiveWorkbook.SaveAs "Foobar.xls", xlNormal
The error is "SaveAs method of Workbook class failed"
I've tried a number of random variations on the theme, to no avail.
Any suggestions would be greatfully received. Thanks!
Const xlCSV=6
objExcel.ActiveWorkbook.SaveAs "Foobar.xls", xlCSV
y sakuda from JPN
> In VBS you can't use named constant.
> (Only allowed vbCRLF etc.)
> If you want to save as CSV must write like this.
>
> Const xlCSV=6
> objExcel.ActiveWorkbook.SaveAs "Foobar.xls", xlCSV
Got it, thanks!
Note: for those playing along at home, it looks like the value for
"xlNormal" is 1.
y sakuda from JPN
Thanks in advance.
Neil