2016-01-28 35 views

回答

0

您可以使用@JamieG提供的功能去粘貼形狀(Related Question)的引用,那麼你可以通過訪問鏈接屬性訪問一定範圍的粘貼形狀的:

Dim shp As Shape 
Set shp = GetPastedShape() 

'Assuming the pasted shape contains a excel spreadsheet 
If shp.Type = msoEmbeddedOLEObject Then 
    shp.OLEFormat.Object.Workbook.Sheet(1).Range("A1") 
End If