Mode Property

Applies To

VBProject object.

Description

Returns a value containing the mode of the specified project. Read-only.

Return Values

The Mode property return values are:

Constant

Description

vbext_vm_RunMode

The specified project is in run mode.

vbext_vm_BreakMode

The specified project is in break mode.

vbext_vm_DesignMode

The specified project is in design mode.


See Also

ActiveVBProject property, Protection property.

Example

The following example uses the Mode property to return the mode of the active project. The value returned is a predefined constant representing the project's mode.

Debug.Print Application.VBE.ActiveVBProject.Mode