>When i create an OLE object (Excel in this case) with createobject() and the user performs some changes into the sheets and cells via VFP to later print the results, when I close the object with:
>
>oExcel=.null.
>release oExcel
>
>Excel ask for saving the changes that the user has made it.
>How can i get rid of this?
>
>I want no asking for saving changes, discard them all. Let the spreadsheet without any changes.
>
>Any idea
>
>Thanks in advance
>Héctor L.
Héctor, you may use
oExcel.ActiveWorkBook.Saved = .t.
before closing Excel.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison