Article ID: 157721
Article Last Modified on 7/1/2004
* First get an object reference to the Excel application
oXL = CREATEOBJECT("Excel.Application") && starts excel
* Open the worksheet created in step 1 (be sure to include
* the full path and file name
oXL.WorkBooks.Add("myfile.xls")
* Retrieve the FileFormat
nFileFormat = oXL.WorkBooks(1).FileFormat
* Save the file under a new name with the same format
oXL.WorkBooks(1).SaveAs("new.xls",nFileFormat)
* Quit Excel
oXL.Quit
* Release the object reference
RELEASE oXL
Keywords: kbhowto kbinterop KB157721