Object Model Reference : Classes : W : Window : Properties : Window.Top |
Property Top As Long
Member of Window
The Top property returns or specifies the top coordinate of a window. This value is measured in screen pixels.
The following VBA example displays the current top coordinate, sets it to half of its original value, and displays the new value.
Sub Test() |
MsgBox "The current top coordinate is: " & ActiveWindow.Top |
ActiveWindow.Top = ActiveWindow.Top / 2 |
MsgBox "The new top coordinate is: " & ActiveWindow.Top |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.