Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Ole Automation
Message
De
02/06/1998 03:09:51
 
 
À
01/06/1998 17:45:26
Ken Zockoll
FactSet Research Systems, Inc.
New York City, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00103800
Message ID:
00103887
Vues:
19
>I can not get excel to save a excel worksheet as a DBF file via VFP.
>Any help would be appreciated.
>
>Excel Worksheet SaveAs method syntax:
>expression.SaveAs(Filename, FileFormat, Password, WriteResPassword, ReadOnlyRecommended, CreateBackup, AddToMru, TextCodePage, TextVisualLayout)
>
>Note: the TextCodePage and TextVisualLayout parameters do not apply the the U.S. version of Excel
>
>my Code:
>ox.Sheets('Changes').SaveAs('c:\temp\test.dbf','xlDBF4' ,' ', ' ', .f. , .f. , .t. )
>
>
>VBA Macro to save as DBF file as it appears in Excel:
>
>ActiveWorkbook.SaveAs FileName:="C:\temp\test.dbf", FileFormat:=xlDBF4, CreateBackup:=False

xldbf4 is not a string, is a constant with the value of 11. try this:

ox.Sheets('Changes').SaveAs('c:\temp\test.dbf',11,' ', ' ', .f. , .f. , .t. )
Saludos,
A.G.P.
---------
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform