如何更改轴标签的方向?

发布时间 2023-08-26 12:11:07作者: liushao-AI

https://excel.dovov.com/1741.htmlvv

 

这将改变X轴刻度标签的方向。

ActiveChart.Axes(xlCategory).TickLabels.Orientation = 45 ' degrees 

 

这是如何改变轴标题的方向:

ActiveChart.Axes(xlCategory).AxisTitle.Orientation = 81 ' degrees 

你有没有试过录制macros? 如果没有,你应该! 查看结果代码是快速学习这种types的好方法。