ServObjByID Method

Searches for a service object with the specified ID (the ID property) in the service object collection of the group/page. Returns a ServObj object that corresponds to the found service object.

Applies to: Page object, Shape object

Syntax

[[Set] servObjRet =] object.ServObjByID ( servObjID )

The ServObjByID method syntax has these parts:

Part Description
object Required. An expression that returns an object in the Applies to list.
servObjID Required. An expression that returns a Long value. The ID of the service object.
servObjRet Optional. A ServObj type variable.

Remarks

If there is no service object with the servObjID ID in the service object collection of the group/page, the ServObjByID method returns Nothing.

 

See Also

ID property, RemoveAllServObjs method, RemoveServObj method, RemoveServObjByID method, ReorderServObj method, ReorderServObjByID method, ServObj method, ServObjsNum method, ServObj object