Lib Method (Window object)

Returns a Library object by its index in the library collection of the window.

Applies to: Window object

Syntax

[[Set] libraryRet =] object.Lib ( index )

The Lib method syntax has these parts:

Part Description
object Required. An expression that returns a Window object .
index Required. An expression that returns a Long value. The library index in the library collection of the library window.
libraryRet Optional. A Library type variable.

Remarks

This method is only effective if the window is a library window (see the Type property). For window of all other types the Lib method always returns Nothing.

If index is less than 1 or greater than the number of libraries in the library collection of the window, the Lib method returns Nothing. To find out the number of libraries in the library collection of the window. use the LibsNum method.

 

See Also

Type property, FindLib method, LibByName method, LibsNum method, Library object