Share via


ActiveConfiguration Property

Home Page (Objects)OverviewFAQReference

Applies to: Application object

Gets or sets the active configuration for a project.

Syntax

object**.ActiveConfiguration** [=Configuration]

Parameters

object

An expression that evaluates to an Application object. When you access the ActiveConfiguration property of the Application object, you can omit object because the name of the Application object is implied when you access its properties and methods.

Configuration

An expression that evaluates to a Configuration object.

Remarks

The ActiveConfiguration property has the Configuration type.

The active configuration is the one built when you call the Application object's Build method with no arguments. In the user interface, the active configuration appears in the Active Project Configuration box, and the ActiveConfiguration property gets or sets what is selected in this box.

Example

The following example gets the active configuration for a project:

Dim Config
Set Config = ActiveConfiguration