I am processing five pictures (printscreen shape) and would like to place them in selected cells, eg. cells N21, P21, S21, U21 & W21. I have the VBA code below to crop the five pictures/shapes and it is working fine, but I am not sure how to place them in the selected cells above. Can anyone enlighten me? Also, how to delete five pictures after that with a VBA button?
Sub CropPictures()
Application.ScreenUpdating = False
Dim shp As Shape
Dim sngMemoLeft As Single
Dim sngMemoTop As Single
Dim i As Integer, j As Integer
i = 0: j = 0
For Each shp In ActiveSheet.Shapes
i = i + 1
With shp
If .Type = 13 Or .Type = 15 Then
j = j + 1
sngMemoLeft = .Left
sngMemoTop = .Top
With .PictureFormat
.CropLeft = 20
.CropTop = 195
.CropBottom = 27
.CropRight = 565
End With
With shp
.Height = 20
.Width = 195
End With
.Left = sngMemoLeft
.Top = sngMemoTop
End If
End With
Next shp
End Sub