Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Deletes the text from a text frame and all the associated properties of the text, including font attributes.
Syntax
expression.DeleteText
expression A variable that represents a TextFrame object.
Example
The following code example deletes the text from the first shape in the active document, if that shape contains text.
Public Sub DeleteText_Example()
ActiveDocument.Shapes(1).TextFrame.DeleteText
End Sub
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.