Left, Top Properties Example

The following example uses the Left and Top properties to return the coordinates of the upper-left corner of a particular window, in twips. These property settings change after a window is linked or docked because then they refer to the Window object to which the original window is linked or docked.

Debug.Print Application.VBE.Windows(9).Left
Debug.Print Application.VBE.Windows(9).Top