MasterByName Method

Searches for a master object with the specified name (the Name property) in the master object collection of the library. Returns a Master object that corresponds to the found master object.

Applies to: Library object

Syntax

[[Set] masterObj =] object.MasterByName ( masterName )

The MasterByName method syntax has these parts:

Part Description
object Required. An expression that returns a Library object.
masterName Required. An expression that returns a String value. The name of the master object.
masterObj Optional. A Master type variable.

Remarks

The MasterByName method searches for a master object with the specified name starting from the beginning of the master object collection of the library, and returns the first found master object. If there is no master object with the masterName name in the master object collection of the library, the MasterByName method returns Nothing.

 

See Also

AddMaster method, FindMaster method, Master method, MasterByName method, MastersNum method, RemoveMaster method, RemoveMasterByName method