返回或设置指定的艺术字中的字体名称。 读/写 String。
语法
表达式。FontName
表达式 表示 TextEffectFormat 对象的变量。
示例
如果形状是艺术字,则在 myDocument 上将形状 3 的字体名称设置为 Courier New。
Set myDocument = Worksheets(1)
With myDocument.Shapes(3)
If .Type = msoTextEffect Then
.TextEffect.FontName = "Courier New"
End If
End With
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。