請教插入圖片到儲存格範圍時,如何等比例的在儲存格範圍內放大或縮小
以下程式碼為圖片大小符合儲存格,應如何修改呢?
i = ThisWorkbook.Path & "\" & NewRef & ".jpg"
X = Dir(ThisWorkbook.Path & "\" & NewRef & ".jpg")
If X <> "" Then
Set rngs = Range(Cells(61, 2), Cells(61, 19))
ActiveSheet.Shapes.AddPicture i, True, True, rngs.Left, rngs.Top, rngs.Width, rngs.Height
Else
End If
謝謝~~ |