This documentation is archived and is not being maintained.

Shape.Top Property

Office 2007
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 there is at least one shape on the first page of the active publication.

Visual Basic for Applications
Sub MoveSizeChangeShape()
    With ActiveDocument.Pages(1).Shapes(1)
        .Top = 72
        .Left = 72
        .Width = 150
        .Height = 150
        .AutoShapeType = msoShape5pointStar
    End With
End Sub

See Also


Show: