【问题标题】:Change Axis Labels font size in PowerPoint 2010 VBA在 PowerPoint 2010 VBA 中更改轴标签字体大小
【发布时间】:2015-09-25 04:42:30
【问题描述】:

您好,我正在使用 PowerPoint 2010,我正在尝试使用 VBA 更改图表中轴标签的字体大小,但出现以下错误。

“对象'ChartFormat'的方法'TextFram2'失败”

我用来更改字体的代码如下。

.Axes(xlCategory).Format.TextFrame2.TextRange.Font.Size = 10

此代码在 Microsoft Excel 中运行良好,但在 PowerPoint 中无法运行。

【问题讨论】:

    标签: vba powerpoint office-2010


    【解决方案1】:

    你可以这样做:

    .Axes(xlCategory).TickLabels.Font.Size = 12
    

    【讨论】:

      猜你喜欢
      • 2022-09-28
      • 2016-04-25
      • 1970-01-01
      • 2014-02-19
      • 2018-07-20
      • 2016-08-21
      • 1970-01-01
      • 2016-11-11
      • 2019-11-18
      相关资源
      最近更新 更多