Hi
I have a chart type,how do i represent these in my code?
- ActiveChart.ApplyCustomType ChartType:=xlBuiltIn, TypeName:=“Line - Column”
For Example:ActiveChart.ChartType = xlLineMarkers
As we declare in Lotus script…
Const xlLineMarkers=65
chart.charttype=xlLineMarkers
What will be the lotus script code for custom chart type.This custom type I got by recoding a macro.
Thanks in Advance for your support
Subject: MS - Excel Chart
xlBuiltIn = 21 so the following should work:
xlchart.ApplyCustomType 21, “Line - Column”
(xlChart is a Variant object representing the active chart)
HTH
Julie
Subject: RE: MS - Excel Chart
Hi Julie,
If i declare like this …
Const xlBuiltIn = 21
With ChartObj.Chart
'.ChartType =xl3DColumn
xlchart.ApplyCustomType 21, "Line - Column"
'.ChartType =xl3DColumnClustered
It is giving variant does not containan object
Subject: RE: MS - Excel Chart
Sanjay
Have you set the xlChart variable? That’s the most likely cause of the error.
The following may work (though I don’t know what the ChartObj variable is set to so can’t be sure):
Const xlBuiltIn = 21
With ChartObj.Chart
.ApplyCustomType 21, “Line - Column”
End With
HTH
Julie
Subject: RE: MS - Excel Chart
Hi Julie
Thanks a lot its working.
Subject: RE: MS - Excel Chart
Hi Julie,
If i declare like this …
Const xlBuiltIn = 21
With ChartObj.Chart
'.ChartType =xl3DColumn
xlchart.ApplyCustomType 21, "Line - Column"
'.ChartType =xl3DColumnClustered
It is giving variant does not containan object
Subject: RE: MS - Excel Chart
Hi Julie,
If i declare like this …
Const xlBuiltIn = 21
With ChartObj.Chart
'.ChartType =xl3DColumn
xlchart.ApplyCustomType 21, "Line - Column"
'.ChartType =xl3DColumnClustered
It is giving variant does not containan object