ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Create Custom Chart with 2 Axes Values in VBA (https://www.excelbanter.com/charts-charting-excel/31473-create-custom-chart-2-axes-values-vba.html)

wira

Create Custom Chart with 2 Axes Values in VBA
 
Hi there,

IF anyone here could show me how to create custom chart in VBA. I want to
create a combination of bar and line chart. What i know is to create a chart,
u need to

Dim chrt as Chart

Set chrt = ChartObjects.Add
chrt.ApplyCustomType(ChartType, TypeName)

I have a problem with the arguments there. Solution, anyone?

thanks,
wira

Tushar Mehta

Does XL give you the necessary code if you use the macro recorder?
Turn it on (Tools | Macro Record new macro...), do whatever it is you
want by hand, turn off the recorder, switch to the VBE, and check the
code XL generated.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
Hi there,

IF anyone here could show me how to create custom chart in VBA. I want to
create a combination of bar and line chart. What i know is to create a chart,
u need to

Dim chrt as Chart

Set chrt = ChartObjects.Add
chrt.ApplyCustomType(ChartType, TypeName)

I have a problem with the arguments there. Solution, anyone?

thanks,
wira



All times are GMT +1. The time now is 10:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com