Selection.MoveToSubprocess method (Visio)

Moves the selection to the specified page, and drops a replacement shape on the source page and links it to the target page. Returns the selection of moved shapes on the target page.

Syntax

expression. MoveToSubprocess( _Page_ , _ObjectToDrop_ , _NewShape_ )

expression A variable that represents a Selection object.

Parameters

Name Required/Optional Data type Description
Page Required Page The subprocess page to which the selection should be moved. You cannot pass the current page.
ObjectToDrop Required [UNKNOWN] The replacement shape to drop.
NewShape Optional Shape Out parameter. Returns the shape that is linked to the new page.

Return value

Selection

Remarks

The ObjectToDrop parameter is typically a Microsoft Visio object, such as a Master or MasterShortcut object. However, it can be any OLE object that provides an IDataObject interface. If ObjectToDrop is null, Visio drops a default shape.

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.