Makes the specified library active.
Applies to: Application object
[[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. |
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.
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 |