Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Charts in excel
Message
 
To
08/08/2005 15:11:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01039387
Message ID:
01039396
Views:
19
This message has been marked as the solution to the initial question of the thread.
Don,


The syntax for ApplyCustomType method is:

expression.ApplyCustomType(ChartType, TypeName)

See more in Excel VBA Help (from Excel, hit ALT+F11, F1)


>If the excel code to create a chart is
>
> ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, TypeName:="Line - Column"
>
>how would you write this in foxcode?
>
>The following 4 lines will work OK.
>
>xlColumnClustered = 51
>xlBuiltIn = 21
>oExcel.Charts.add
>oExcel.ActiveChart.ChartType = xlColumnClustered
>
>
>But when I try to make it a custom chart it fails. I have tried all of the following variations without success.
>
>oExcel.ActiveChart.ApplyCustomType.ChartType(xlBuiltIn).TypeName = "Line - Column"
>oExcel.ActiveChart.ApplyCustomType.ChartType(xlBuiltIn,"Line - Column")
>oExcel.ActiveChart.ChartType(xlBuiltIn,"Line - Column")
>oExcel.ActiveChart.ChartType = xlBuiltIn
>oExcel.ActiveChart.ChartType = "Line - Column"
>oExcel.ActiveChart.ChartType(xlBuiltIn) = "Line - Column"
>
>
>Also, didn't we used to have a section on UT for OFFICE automation?
>
>Thanks for any help.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform