Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening excel through VFP
Message
From
12/06/2001 13:02:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/06/2001 12:43:45
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00518464
Message ID:
00518487
Views:
9
>when I tried that I got "Member WORKSHEET does not evaluate to an object ?
>
>Any other ideas ?

oExcel = CreateObject("Excel.Application")
oExcel.Visible = 1 && for debugging
oExcel.Workbooks.Add()
oSheet = oExcel.ActiveSheet
oSheet.Cells(1,1) = "Hello!"

For additional commands within Excel, save a macro in Excel.

For inserting formulas, I recommend using R1C1 syntax, since generating a cell reference like AA41 is quite complicated.

Regards, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform