Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Returns or sets a String that represents the text contained in the specified object. Read/write.
Syntax
expression.Text
expression A variable that represents a TextRange object.
Return value
String
Example
This example sets the text and font style for the title on slide one in the active presentation.
Set myPres = Application.ActivePresentation
With myPres.Slides(1).Shapes.Title.TextFrame.TextRange
.Text = "Welcome!"
.Font.Italic = True
End With
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.