Not
Bu sayfaya erişim yetkilendirme gerektiriyor. Oturum açmayı veya dizinleri değiştirmeyi deneyebilirsiniz.
Bu sayfaya erişim yetkilendirme gerektiriyor. Dizinleri değiştirmeyi deneyebilirsiniz.
Returns or sets a Long that represents the distance between the top edge of the screen and the application window. Read/write.
Syntax
expression.Top
expression A variable that represents a Window object.
Example
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
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.