Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close excel workbook
Message
 
To
04/11/2011 11:25:46
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01528071
Message ID:
01528079
Views:
37
>Hi all -
>When issuing a COM command to close an excel workbook (oBook.Close) excel now wants to confirm the close which seems to be a new feature MS has added. Does anyone know of a way to avoid the confirm message so the program will just keep going ?
>Thanks

Hi Don,

In vba excel the instruction would be oBook.Close False, where the False stands for SaveChanges.

I guess in vfp you would oBook.Close(.f.).

You might want to save before you close.

You might also try application.displayalerts = false, where application translates in to your Excel object in VFP.

Good luck,

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform