Syntax

expression.BeginDisconnect

expression A variable that represents a ConnectorFormat object.

Example

This example adds two rectangles to myDocument, attaches them with a connector, automatically reroutes the connector along the shortest path, and then detaches the connector from the rectangles.

Visual Basic for Applications
Set myDocument = Worksheets(1) Set s = myDocument.Shapes Set firstRect = s.AddShape(msoShapeRectangle, 100, 50, 200, 100) Set secondRect = s.AddShape(msoShapeRectangle, 300, 300, 200, 100) Set c = s.AddConnector(msoConnectorCurve, 0, 0, 0, 0) With c.ConnectorFormat .BeginConnect firstRect, 1 .EndConnect secondRect, 1 c.RerouteConnections .BeginDisconnect .EndDisconnect End With
begin begin disconnect Begin Disconnect Method BeginDisconnect BeginDisconnect Method Detach connector? Detach the beginning of the specified connector from the shape it is attached to? Disconnect front end of connector?

See also: