Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel automation - formula
Message
 
To
06/07/2007 13:53:11
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01238295
Message ID:
01238301
Views:
21
>I tried the command line below borrowed from "Ms Office Automation with VFP" but it wont work. Got OLE error message.
>Any help?
>
>oExcel.ActiveSheet.Range("K:22").Formula = "=SUM(K19;K16;K10;K7)"
>
Unfortunately I didn't have Excel installed on my home computer, so I can't test but I thik you need something like:
oExcel.ActiveSheet.Cell(11,22).Formula = "=SUM(K19;K16;K10;K7)" 
But again, this is didn't tested.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform