Information générale
Catégorie:
COM/DCOM et OLE Automation
>>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
Thanks Marc.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement