Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formulas in Excel
Message
From
14/03/2007 05:39:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Formulas in Excel
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01203274
Message ID:
01203274
Views:
76
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
Next
Reply
Map
View

Click here to load this message in the networking platform