Just refer to the Picture's TopLeftCell
Property:
Sub PictureMover()
Dim s As Shape
For Each s In ActiveSheet.Shapes
sAddy = s.TopLeftCell.Address(0, 0)
If sAddy = "A7" Or sAddy = "A8" Then
s.Copy
Sheets("Sheet2").Paste
End If
Next
End Sub
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.