Share via


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.

Version Information

Version Added: Visio 2010

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.