Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
As I wrote in earlier question I recently automated an Excel app to show some statistics from a different program Im currently working on. One obstacle I still couldnt pass was the custom type: "Line - Column on 2 Axes" chart. Using the macro VBA recorder I got the following code: Sub Macro1() ActiveChart.SeriesCollection(2).Select ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, TypeName:= _ "Line - Column on 2 Axes" End Sub Which I translated to C++ code as: chart - ApplyCustomType ( (XlChartType)xlBuiltIn, "Line - Column on 2 Axes" ); The result was as in previous attempts the default chart type in the user defined custom types. As much as I looked for I couldnt find any reference to "Line - Column on 2 Axes" TypeName in the excel.tlh or .tli or using the OLE/COM object viewer. Or a function that can get an €œXlChartGallery€ enum as the chart type parameter rather then the XlChartType. Im sure that if the VBA can do it then there is a way to automate it in C++, please let me know how:) Thanks Tal. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how can i get a "Column - Line on 2 axes" graph? | Charts and Charting in Excel | |||
Help on adding the second trendline in a "lines on 2 axes" Chart via VBA | Charts and Charting in Excel | |||
Apply custom chart type - VBA | Charts and Charting in Excel | |||
How do you select line or columns in "Line-Column on 2 axes" graphs? | Excel Discussion (Misc queries) | |||
My Custom Line-Column 2 axes Chart dsn't work with +6sets of cells | Charts and Charting in Excel |