Oharra
Orrialde honetara sartzeak baimena behar du. Saioa hasteko edo direktorioak aldatzen saia zaitezke.
Orrialde honetara sartzeak baimena behar du. Direktorioak aldatzen saia zaitezke.
Representa el marco de texto de un objeto Shape o ShapeRange.
Observaciones
Este objeto contiene el texto en el marco de texto, así como las propiedades y métodos que controlan la alineación y delimitación del marco de texto. Utilice la propiedad TextFrame2 para devolver un objeto TextFrame2.
Ejemplo
En el ejemplo siguiente 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 = Worksheets(1)
With myDocument.Shapes.AddShape(msoShapeRectangle, _
0, 0, 250, 140).TextFrame2
.TextRange.Text = "Here is some test text"
.MarginBottom = 10
.MarginLeft = 10
.MarginRight = 10
.MarginTop = 10
End With
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.