다음을 통해 공유


TextFrame2.HasText Property (Excel)

Returns whether the specified text frame has text. Read-only MsoTriState.

Version Information

추가된 버전: Excel 2007

Syntax

.HasText

A variable that represents a TextFrame2 object.

Example

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

With ActiveSheet.Shapes(1).TextFrame2 
If .HasText Then 
.TextRange2.Font.Name = "Arial" 

참고 항목

개념

TextFrame2 Object Members

TextFrame2 Object