Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automatically close all Excel workbooks without saving
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00976227
Message ID:
00976247
Vues:
10
How about
o = CREATEOBJECT("excel.application")
owb = o.Workbooks.Open("c:\book1.xls")
owb.Close(.f.)  && Do not save changes
o.Quit
>How to automatically close all Excel opened workbooks without saving it?
>
>I would like to do this in the finally section in the try-catch block before quiting Excel so that it would get stuck with an "Do you want to save your workbook?" Dialog.
>
>Thanks!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform