>Hi All,
>
>I'm automating Excel with Foxpro to open a excel 97 workbook,when opening it prompts a message if I want to open it in "edit" mode or "read" mode. How to supress the prompt and choose always for edit. I have somewhat the following code:
>
>
>oExcel = CreateObject("Excel.Application")
>oExcel.Workbooks.Open("f:\restposten.xls")
>
Try to change
oExcel.DisplayAlerts = .F.
oExcel.
Application.Workbooks.Open("f:\restposten.xls")
If it's not broken, fix it until it is.
My Blog