Oharra
Baimena behar duzu orria atzitzeko. Direktorioetan saioa has dezakezu edo haiek alda ditzakezu.
Baimena behar duzu orria atzitzeko. Direktorioak alda ditzakezu.
Devuelve un objeto TextFrame que contiene el texto de la forma especificada.
Sintaxis
expresión. Textframe
Expresión Variable que representa un objeto Shape .
Ejemplo:
En este ejemplo, se agrega un rectángulo a myDocument, se agrega texto al rectángulo y, a continuación, se establecen los márgenes del marco de texto.
Set myDocument = ActiveDocument
With myDocument.Shapes.AddShape(msoShapeRectangle, _
0, 0, 250, 140).TextFrame
.TextRange.Text = "Here is some test text"
.MarginBottom = 0
.MarginLeft = 100
.MarginRight = 0
.MarginTop = 20
End With
Consulte también
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.