LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to apply the custom chart type: "Line - Column on 2 Axes"

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i get a "Column - Line on 2 axes" graph? bunjoy Charts and Charting in Excel 1 September 28th 07 02:22 PM
Help on adding the second trendline in a "lines on 2 axes" Chart via VBA [email protected] Charts and Charting in Excel 1 August 11th 07 02:13 PM
Apply custom chart type - VBA Fredrik E. Nilsen Charts and Charting in Excel 5 April 20th 07 04:52 PM
How do you select line or columns in "Line-Column on 2 axes" graphs? mizterbusy Excel Discussion (Misc queries) 0 September 19th 06 06:48 AM
My Custom Line-Column 2 axes Chart dsn't work with +6sets of cells Tim Charts and Charting in Excel 0 August 8th 05 07:07 AM


All times are GMT +1. The time now is 04:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"