I have an image in cell (3,1) and would like to move the image into cell (1,1).
I have this code:
ActiveSheet.Cells(1, 1).Value = ActiveSheet.Cells(
A quick and dirty way:
Public Sub Example()
MoveShape ActiveSheet.Shapes("Picture 1"), Range("A1")
End Sub
Private Sub MoveShape(ByVal shp As Excel.Shape, ByVal target As Excel.Range)
shp.IncrementLeft -(shp.TopLeftCell.Left - target.Left)
shp.IncrementTop -(shp.TopLeftCell.Top - target.Top)
End Sub