J
Jon
Hi, I'm writing a Macro to smarten up some graphs. I get a problem
when trying to format the style of the gridlines. I get the error
"Select method of gridlines class failed". The code below works fine
on graphs with only a primary axis, but doesn't when you have primary
and secondary axes. What am I doing wrong?
ActiveChart.Axes(xlCategory).MajorGridlines.Select
With Selection.Border
.ColorIndex = 16
.Weight = xlHairline
.LineStyle = xlDot
End With
when trying to format the style of the gridlines. I get the error
"Select method of gridlines class failed". The code below works fine
on graphs with only a primary axis, but doesn't when you have primary
and secondary axes. What am I doing wrong?
ActiveChart.Axes(xlCategory).MajorGridlines.Select
With Selection.Border
.ColorIndex = 16
.Weight = xlHairline
.LineStyle = xlDot
End With