Propiedad TextFrame.HasText (Word)

True si la forma especificada tiene texto asociado. Boolean de solo lectura.

Sintaxis

expresión. HasText

Expresión Variable que representa un objeto TextFrame .

Ejemplo:

En este ejemplo se muestra un mensaje si el texto desborda el marco; la segunda forma del documento activo contiene texto.

Dim docActive As Document 
 
Set docActive = ActiveDocument 
With docActive.Shapes(2).TextFrame 
 If .HasText = True Then 
 If .Overflowing = True Then 
 Msgbox "Text overflows the frame." 
 End If 
 End If 
End With

Consulte también

Objeto TextFrame

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.