有没有办法根据Excel中使用VBA的形状的节点索引获取连接器的名称?类似的东西:
Dim shp as Shape
Dim i as Integer
For each shp in activesheet.shapes 'loop through all shapes on the active sheet
If shp.connector = False Then 'if shape is not a connector type
For i = 1 to shp.ConnectionSiteCount 'loop through all shape nodes
shp.nodes(i).connector.name 'return the connector name at that node
Next i
End If
Next shp
我知道你可以循环遍历所有连接器形状以找到开始和结束形状,但我想使用形状并循环遍历节点以查看是否有连接器,如果有,则返回名称那个连接器。