Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Export
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00425832
Message ID:
00425902
Vues:
18
>How would you open an existing Excel spreadsheet and then save it again. The only way I could get the spreadsheet to open was by the Workbooks object which does not have a SaveAs function.

ox=create('excel.application')
ox.Workbooks.Open('c:\my documents\myfile.xls')
ox.Visible=.t.
* munge the data, then
ox.ActiveWorkbook.Save or
ox.ActiveWorkbook.Close(.t.)
ox.quit
release ox
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform