Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting excel macro to VFP
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Converting excel macro to VFP
Miscellaneous
Thread ID:
00261234
Message ID:
00261234
Views:
81
Hi;

I am trying to convert an excel macro for inserting a chart into vfp code and am having a problem with the two macro lines below (the second line starts with 'PlotBy'):

ActiveChart.SetSourceData Source:=Sheets("cheqsale").Range("AB4:AB8"), _
PlotBy:=xlColumns

I have tried (and numerous other possibilities):

oExcel.ActiveChart.SetSourceData Source:=Sheets("cheqsale").Range("AB4:AB8"), _PlotBy:=xlColumns

I am using an excel.h file for constants.

Any ideas would be appreciated.

John
John Campbell
Next
Reply
Map
View

Click here to load this message in the networking platform