Table of contents
Collapse the table of content
Expand the table of content

Window.Top Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns or sets a Long that represents the distance between the top edge of the screen and the application window. Read/write.


expression. Top

_expression_A variable that represents a Window object.


This example verifies that the state of application window is neither maximized nor minimized and then resizes the window and moves it to 150 points from the top of the screen.

Sub MoveWindow() 
 With ActiveWindow 
 If .WindowState = pbWindowStateNormal Then 
 .Top = 150 
 .Resize Width:=500, Height:=500 
 End If 
 End With 
End Sub
© 2018 Microsoft