2,462
社区成员
发帖
与我相关
我的任务
分享
Dim OrigSelection As ShapeRange
Set OrigSelection = ActiveSelectionRange
Dim iCount As Long
Dim i As Long
iCount = OrigSelection(2).Shapes.Count
ReDim c(1 To iCount) As Shape
Set c(1) = OrigSelection(2).Shapes.Item(1).Weld(OrigSelection(2).Shapes.Item(iCount), True, True)
For i = 2 To iCount Step 1
Set c(i) = OrigSelection(2).Shapes(c(i)).Weld(c(i - 1), True, False) '错误提示:类型不匹配,我看了Weld方法,返回的是Shape,但就是提示类型不匹配,
Next i