StartUpObject Property

       

Returns or sets the startup component for the project.

Syntax

object.StartUpObject

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Return Values

The value that is returned is a variant that contains either an enumerated value of type vbext_StartupObject, or a VBComponent object that represents the startup object.

The StartUpObject property settings for vbext_StartUpObject are:

Constant Value Description
vbext_so_SubMain 0 Startup object is the sub Main.
vbext_so_None 1 There is no startup object.

Remarks

Only visual at run time project items can be the startup object.