如果坐标轴有次要网格线,则该值为 True。仅主坐标轴组中的坐标轴才能有网格线。Boolean 类型,可读写。
本示例设置数值轴次要网格线的颜色。
With myChart.Axes(xlValue) If .HasMinorGridlines Then .MinorGridlines.Border.ColorIndex = 4 ' Set color to green. End If End With