Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Worksheet SaveAs Problem
Message
 
 
À
22/12/2011 22:12:36
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
01531600
Vues:
41
>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

What happens if you don't provide extension for the file?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform