วิธีการแทรกรูปใน Excel อย่างไรให้พอดีอัตโนมัติ ไม่ต้องเสียเวลาในการปรับขนาดรูปภาพ
สูตรที่ใช้
........................
Dim sPicture As String, pic As Picture
sPicture = Application.GetOpenFilename _
("Pictures (*.gif; *.jpg; *.bmp; *.tif), *.gif; *.jpg; *.bmp; *.tif", _
, "please select picture as you want")
If sPicture = "False" Then Exit Sub
Set pic = ActiveSheet.Pictures.Insert(sPicture)
With pic
.ShapeRange.LockAspectRatio = msoFalse
.Height = ActiveCell.Height
.Width = ActiveCell.Width
.Top = ActiveCell.Top
.Left = ActiveCell.Left
.Placement = xlMoveAndSize
End With
Set pic = Nothing
+++++++++++++++++++++++++
Негізгі бет แทรกรูปใน Excel อย่างไรให้พอดีอัตโนมัติ
Пікірлер: 45