Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formulas in Excel
Message
De
14/03/2007 05:39:19
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Formulas in Excel
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01203274
Message ID:
01203274
Vues:
75
Hi all,

i'm trying excel automation via vfp. When i want to insert a calculation i get an ole error message. for ex :
lcSheet = GetObject('','excel.sheet')
xlApp = lcSheet.application
XLApp.Visible = .t.
XLApp.WorkBooks.Add()
xlSheet = xlApp.ActiveSheet
oRange = xlSheet.Range('A10:R10')
WITH oRange
.Columns[6].Formula     = '=ALS(C' + lcTeller + '=1;$B$5;ALS(C' + lcteller + '=2;$B$6;$B$7))'
ENDWITH
('als' = dutch for iif msoffice is dutch)

generates following error : unknown com status code.

does anybody have an idea ?

thnx
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform