ActiveLib Property

Read-only. Returns an instance of the Library object corresponding to the active library.

Applies to: Application object

Syntax

[[Set] libRet =] object.ActiveLib

The ActiveLib property syntax has these parts:

Part Description
object Required. An expression returning an Application object.
libRet Optional. A Library type variable.

Remarks

If there is no active library in the application, the ActiveLib property returns Nothing. However, it doesn't mean that there are no open libraries in the application. Use the SetActiveLib method to make a library active.

Example

This example contains an application-level script. It demonstrates using the ActiveLib property.

Dim active_lib as Library             ' Declare a  Library type variable
Set active_lib = thisApp.ActiveLib    ' Set active library
active_lib.Name = "Current_Lib"       ' Give new filename to active library

'... some code to inflate your active lib

active_lib.Save()                     ' Save library with new filename.
TRACE active_lib.FullName             ' Display full filename and path to the saved library

 

See Also

SetActiveLib method, Library object