LibByName Method (Window object)

Returns a Library object by the library name (the Name property).

Applies to: Window object

Syntax

[[Set] libraryRet =] object.LibByName ( libraryName )

The LibByName method syntax has these parts:

Part Description
object Required. An expression that returns a Window object .
libraryName Required. An expression that returns a String value. The name of the library to be found.
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 LibByName method always returns Nothing.

The LibByName method searches for the library with the specified name (the Name property) starting from the beginning of the library list of the window, and returns the first library found. If there is no library with such name in the collection, the LibByName method returns Nothing.

 

See Also

Name property, Type property, FindLib method, Lib method, LibsNum method, Library object