此代码:
With ActiveChart.Axes(xlCategory, xlPrimary)
.HasTitle = True
.AxisTitle.Characters.Text = "Issues"
End With
它将标签添加到X轴,但它也保留旧标签。我想更改或删除旧标签。 现在我在x轴下面有两个标签/标题。
答案 0 :(得分:1)
如果您想先删除旧轴标题,请尝试:
With ActiveChart.Axes(xlCategory, xlPrimary)
.AxisTitle.Delete
.HasTitle = True
.AxisTitle.Characters.Text = "Issues"
End With