General information
Category:
ActiveX controls in VFP
Title:
SaveAs Property in Excel
I am trying to open an Excel 2000 or any Excel spreadsheet and save it as a CSV file. I have tried:
ObjExcel= CREATEOBJECT("Excel.Application")
with ObjExcel
.Workbooks.Open("C:\MyFile.xls")
.ActiveWorkbook.SaveAs("C:\NewFile.csv", "xlCSV")
endwith
ObjExcel.Quit
release objexcel
I keep getting a OLE IDispatch execution Code 0; Unable to get the SaveAs Property of the Workbook Class. Help??
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only