Shape.Top property (Publisher)
Returns or sets a Variant that represents the distance between the top of the page and the top of a shape. Read/write.
Syntax
expression.Top
expression A variable that represents a Shape object.
Example
This example changes the position, size, and type of shape of the first shape on the first page of the active publication. This example assumes that there is at least one shape on the first page of the active publication.
Sub MoveSizeChangeShape()
With ActiveDocument.Pages(1).Shapes(1)
.Top = 72
.Left = 72
.Width = 150
.Height = 150
.AutoShapeType = msoShape5pointStar
End With
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.