ServObj Method

Returns a ServObj object that corresponds to the service object with the specified index in the service object collection of the page/group.

Applies to: Page object, Shape object

Syntax

[[Set] servObjRet =] object.ServObj ( index )

The ServObj method syntax has these parts:

Part Description
object

Required. An expression that returns an object in the Applies to list.

index Required. An expression that returns a Long value.
servObjRet Optional. A ServObj type variable.

Remarks

If index is less than 1 or greater than the number of service objects in a group or page to which object corresponds, the ServObj method returns Nothing. You can use the ServObjsNum method to find out the number of service objects in the group or page.

 

See Also

RemoveAllServObjs method, RemoveServObj method, RemoveServObjByID method, ReorderServObj method, ReorderServObjByID method, ServObjByID method, ServObjsNum method, ServObj object