VBA 插入图片以及对图片进行裁切及位置移动
Set shp = Sheet1.Shapes.AddPicture("路径", msoFalse, msoCTrue, 0, 0, -1, -1)
With shp
.PictureFormat.CropTop = mTop '下移裁剪
.PictureFormat.CropLeft = mLeft '右移裁剪
.PictureFormat.CropBottom = cBottom '上移裁剪
.PictureFormat.CropRight = cRight '左移裁剪
.Left = Cells(mRow + j, mCol).Left + 5
.Top = Cells(mRow + j, mCol).Top + 5
.Width = Cells(mRow + j, mCol).Width - 5
.Height = Cells(mRow + j, mCol).Height - 5
End With