AddSelOjbsToActiveTerritory

The AddSelObjsToActiveTerritory method assigns the selected objects to a specified territory.

 

Syntax

object.AddSelObjsToActiveTerritory( Territory )

object.AssignShapeToTerritory( TerritoryIndex, PIDNameOfShape )

 

Parameter

Type

Description

Territory

Integer

required; territory number, the first territory is 1

 

Example

    'AddSelObjsToActiveTerritory

    'Select a few PIDs from the boundaries

    TerritoryMap.Parent.Shapes.SelectByPID(PIDName:="08009")

    TerritoryMap.Parent.Shapes.SelectByPID(PIDName:="08021")

 

    'Add the selected objects to the first territory

    TerritoryMap.AddSelObjsToActiveTerritory(Territory:=1)

 

Used by: TerritoryMap object