RemoveMasterByName Method

Removes the master object with the specified name (the Name property) from the master object collection of the library.

Applies to: Library object

Syntax

[[Let] count =] object.RemoveMasterByName ( masterName )

The RemoveMasterByName 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. Indicates the name (the Name property) of the master object to be removed.

count Optional. A Long type variable.

Remarks

The RemoveMasterByName 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 master object, that matches the specified name. If there are no master objects with such name, the MasterByName method returns Nothing.

 

See Also

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