Shape.ContainingPage Property (Visio)
Returns the page that contains an object.
A variable that represents a Shape object.
If the object isn't in a Page object, the ContainingPage property returns Nothing. For example, if a Shape object belongs to a Masters collection, the ContainingPage property returns Nothing.