다음을 통해 공유


TextFrame2.DeleteText Method (Excel)

Deletes the text from a text frame and all the associated text properties.

Version Information

추가된 버전: Excel 2007

Syntax

.DeleteText

A variable that represents a TextFrame2 object.

Remarks

The associated text properties include Font attributes such as bold, underline, and so on.

Example

This example deletes the text in the text frame, if the text frame contains text.

With ActiveSheet.Shapes(1).TextFrame2 
 If .HasText Then 
 .DeleteText ()

참고 항목

개념

TextFrame2 Object

TextFrame2 Object Members