mkrausnick
Programmer
Using VFP9 running on XP SP2 and Office 2003, I open an existing Excel 2003 file, add data to it, and save it. It worked fine. When I upgraded Office to 2007, it stopped working. I can still open and populate the workbook, but when I execute the SaveAs method, I get:
I tried the SaveAs method 3 ways:
oWorkbook.SaveAs("c:\temp\myfile.xls")
oWorkbook.SaveAs("c:\temp\myfile.xls")
oWorkbook.SaveAs("c:\temp\myfile.xls", 43)
All 3 of these statements work when running Office 2003. An article at says that the file extension and file type must match. But is also says the default for saving is the format of the opened file, so I don't think that's the problem.
Any ideas how to solve this would be greatly appreciated.
Mike Krausnick
Dublin, California
with a "Switch To... / Retry / Cancel" dialog. Switch To and Retry don't do anything when clicked.This action cannot be completed because the Micrsoft Excel - c:\temp\myfile.xls (Compatibility mode) program is busy. Choose Switch To" and correct the problem.
I tried the SaveAs method 3 ways:
oWorkbook.SaveAs("c:\temp\myfile.xls")
oWorkbook.SaveAs("c:\temp\myfile.xls")
oWorkbook.SaveAs("c:\temp\myfile.xls", 43)
All 3 of these statements work when running Office 2003. An article at says that the file extension and file type must match. But is also says the default for saving is the format of the opened file, so I don't think that's the problem.
Any ideas how to solve this would be greatly appreciated.
Mike Krausnick
Dublin, California