アクティブシート上にある図形の中で四角形の図形のみ、図形があるセルの内容を取得します。
Dim shapeR As Range
For Each i In ActiveSheet.Shapes
If i.AutoShapeType = msoShapeRectangle Then
MsgBox i.TopLeftCell.Value
End if
Next
Go to list of users who liked
More than 5 years have passed since last update.
アクティブシート上にある図形の中で四角形の図形のみ、図形があるセルの内容を取得します。
Dim shapeR As Range
For Each i In ActiveSheet.Shapes
If i.AutoShapeType = msoShapeRectangle Then
MsgBox i.TopLeftCell.Value
End if
Next
Register as a new user and use Qiita more conveniently
Go to list of users who liked