Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close excel workbook
Message
 
À
04/11/2011 11:25:46
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01528071
Message ID:
01528079
Vues:
36
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform