StartUpPosition

This property returns and sets a value that specifies the position of an object when the object first appears.

Syntax

object.StartUpPosition [= position]

Parameters

object
Object expression that evaluates to a Form object.
position
Integer that specifies the position of the object.

The following table shows the settings for the StartUpPosition property.
Constant
Value
Description
vbStartUpManual 0 No initial setting specified
vbStartUpOwner 1 Center on the item to which the UserForm belongs
vbStartUpScreen 2 Center on the entire screen
vbStartUpWindowsDefault 3 Position in upper-left corner of screen

Remarks

You can set the StartUpPosition property at design time only.