应用于 HeaderFooter、TextEffectFormat 和 TextRange 对象的 Text 属性。
返回或设置 String 类型值,该值代表指定对象中包含的文本。可读写。
expression.Text
expression 必选。该表达式返回上述对象之一。
本示例设置当前演示文稿第一张幻灯片中标题的文本和字形。
Set myPres = Application.ActivePresentation
With myPres.Slides(1).Shapes.Title.TextFrame.TextRange
.Text = "Welcome!"
.Font.Italic = True
End With