【发布时间】:2016-08-02 12:02:23
【问题描述】:
我有一个图表(由 VBA 中的 Userform 生成),同时存在主要和次要 y 轴。我希望只在辅助轴上放置网格线,而主轴上的网格线不存在!我该怎么做(??),此时网格线出现在主要和次要 y 轴上。这是我正在使用的代码:
With ActiveChart
.HasTitle = True
.ChartTitle.Characters.Text = "title"
.Axes(xlCategory, xlPrimary).HasTitle = True
.Axes(xlCategory, xlPrimary).AxisTitle.Characters.Text = "Dates"
.Axes(xlValue, xlPrimary).HasTitle = True
.Axes(xlValue, xlPrimary).AxisTitle.Characters.Text = "Dollar"
.Axes(xlValue, xlPrimary).TickLabels.NumberFormat = "0"
.Axes(xlCategory).HasMajorGridlines = True
.Axes(xlValue, xlSecondary).HasMinorGridlines = True
.Legend.Position = xlLegendPositionRight
End With
帮助!!!!请在这里提供任何帮助,我将不胜感激!谢谢
【问题讨论】: