StartUpPosition Property

Microsoft Visual Basic Constants

StartUpPosition Property

           

Returns or sets a value specifying the position of a UserForm when it first appears.

You can use one of four settings for StartUpPosition:

Setting Value Description
Manual 0 No initial setting specified.
CenterOwner 1 Center on the item to which the UserForm belongs.
CenterScreen 2 Center on the whole screen.
WindowsDefault 3 Position in upper-left corner of screen.

Remarks

You can set the StartUpPosition property programmatically or from the Properties window.