Stretchwickster
Programmer
I have a chart which varies in ChartType. It is either a xlColumnClustered or xlLineMarkers (with Series.Border.LineStyle = xlNone) chart. In another part of code I need to check which ChartType the chart is currently set to. The constant represented by xlLineMarkers is 65 and this is recognised properly initially. However, when the following line is executed the ChartType value becomes -4111 instead of 65:
So when I do
it doesn't recognise the Chart as being of that type, even when it actually is!
Why does this change occur to the ChartType when the LineStyle is set? And is it best to check the ChartType against -4111 to recognise it? Clive![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
Code:
ActiveChart.SeriesCollection(1).Border.LineStyle = xlNone
Code:
if ActiveChart.ChartType = xlLineMarkers then
Why does this change occur to the ChartType when the LineStyle is set? And is it best to check the ChartType against -4111 to recognise it? Clive
![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)