[VBA][编程] VBA使用“TextFrame2”设置坐标轴属性出错
用VBA开发EXCEL,为修改坐标轴刻度线字体的大写,通过录制宏看到如下代码: ActiveChart.Axes(xlValue).Select With Selection.Format.TextFrame2.TextRange.Font .Size = 12 .Bold = True End With 可以从 宏 中看见,代码是通过 TextFrame2 属性对刻度线姿态进行控制的。 但将上述代码在程序中编译,则发现报错,提示 TextFrame2 无法识别,不存在。 不知道是Bug还是什么,最后通过 TickLabels 属性解决。 微信公众号 ( Wechat Subscription) 欢迎关注 “结构之旅” 微信公众号
![Grasshopper建筑结构参数化建模应用实例[Practical Examples of Parametric Modeling for Building Structures Using Grasshopper]](http://www.jdcui.com/wp-content/uploads/2026/01/封面.png)