ShapeRange.Connector property (Excel)

True if the specified shape is a connector. Read-only MsoTriState.



expression An expression that returns a ShapeRange object.


This example deletes all connectors on myDocument.

Set myDocument = Worksheets(1) 
With myDocument.Shapes 
    For i = .Count To 1 Step -1 
        With .Item(i) 
            If .Connector Then .Delete 
        End With 
End With

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.