Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Worksheet SaveAs Problem
Message
De
22/12/2011 22:12:36
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Excel Worksheet SaveAs Problem
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01531599
Message ID:
01531599
Vues:
93
Hi,
I want to create a worksheet with a filename assigned before open it, I use following code,
but not success to SaveAs the file and open it.
cxlsfile="ABC.xls"
oExcel = CREATEOBJECT([Excel.Application])
oWorkbook = oExcel.Workbooks.Add()	
oWorkbook = oExcel.Workbooks.SaveAs(cxlsfile, xlNormal) 
oWorkbook = oExcel.Workbooks.open(cxlsfile) 
Please advise what is wrong.

Thanks.

Derek
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform