SetActiveLib Method

Makes the specified library active.

Applies to: Application object

Syntax

[[Let] booleanRet =] object.SetActiveLib ( libraryObj )

The SetActiveLib method syntax has these parts:

Part Description
object Required. An expression, that returns an instance of the Application object.
libraryObj Required. An expression, that returns an instance of the Library object. Indicates the library to make active.
booleanRet Optional. A Boolean type variable.

Remarks

If libraryObj is open in the application, the SetActiveLib changes the active library from the current to specified one, and returns True. Otherwise the SetActiveLib method remains the active library unchanged and returns False. The SetActiveLib method is used to change the ActiveLib property.

Example

This example contains a application-level script. It activates the fifth library from the library collection of the application.

thisApp.SetActiveLib( thisApp.Lib(5) )

 

See Also

ActiveLib property, Library object