Selection.ContainingPage property (Visio)
Returns the page that contains an object.
Syntax
expression. ContainingPage
expression A variable that represents a Selection object.
Return value
Page
Remarks
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.
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.