Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping Excel quiet during Close()
Message
De
23/07/2007 16:09:14
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Keeping Excel quiet during Close()
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01242972
Message ID:
01242972
Vues:
79
I try to save a xls to a dbf3-file by using OLE-automation. I don't want to disturb the user by messages. I use this code:
loexcel=createobject("excel.application")
loexcel.workbooks.open("M:\myxls.xls")
loexcel.ActiveWorkbook.SaveAs("M:\xx.dbf",8,,,,,1)
loexcel.ActiveWorkbook.Close()    && I get a message now: Wanna save your changes?
loexcel.quit
I don't want this message (btw: I answer 'no'). How can I suppress it?

TIA,

Lennert
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform