Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suppressing Excel warning message via OLE automation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Suppressing Excel warning message via OLE automation
Divers
Thread ID:
00867005
Message ID:
00867005
Vues:
66
In the following sample code, the last line of Code will give a warning in the Excel User Interface, as I am about to delete a worksheet with some dummy temp data. I want to suppress this warning. ie I want to do something like a VFP command: SET SAFETY OFF so that the sheet gets deleted so that the rest of my code will execute without user intervention.

ox = CREATEOBJECT("Excel.application")
ox.Visible=.t.
ox.Workbooks.Add
ox.ActiveSheet.Cells(1,1) = "test"
ox.ActiveSheet.Delete()
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform