This property returns and sets a value that specifies the position of an object when the object first appears.
object.StartUpPosition [= position]
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 |
You can set the StartUpPosition property at design time only.