Compartir a través de


Propiedad TextRange.Text (Publisher)

Devuelve o establece una cadena que representa el texto de un intervalo de texto o forma de WordArt. Lectura y escritura.

Sintaxis

expresión. Mensaje de texto

expresión Variable que representa un objeto TextRange .

Ejemplo

En el siguiente ejemplo se agrega un rectángulo a la publicación activa y luego se le agrega texto.

Sub AddTextToShape() 
 With ActiveDocument.Pages(1).Shapes.AddShape(Type:=msoShapeRectangle, _ 
 Left:=72, Top:=72, Width:=250, Height:=140) 
 .TextFrame.TextRange.Text = "Here is some test text" 
 End With 
End Sub

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.