- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 5# h99949 - Option Explicit
- Sub ChangeSize()
- Dim Mypath As String, E As Range, i As Integer ', MyPic As Object
- Mypath = "D:\catalogue\"
- With Sheets("¤u§@ªí1")
- .Pictures.Delete
- For i = 1 To 7 Step 3 'AÄæ ->1,DÄæ ->4,GÄæ ->7
- For Each E In .UsedRange.Columns(i).Cells ' 'AÄæ ->1,DÄæ ->4,GÄæ ->7
-
- E.ColumnWidth = 25 '½Õ¾ãÀx¦s®æ¼e«×
- E.RowHeight = 50 '½Õ¾ãÀx¦s®æ°ª«×
-
- If Dir(Mypath & E & ".jpg") <> "" Then
- 'Set MyPic = ActiveSheet.Pictures.Insert(Mypath & E & ".jpg")
- With .Pictures.Insert(Mypath & E & ".jpg")
- .ShapeRange.LockAspectRatio = msoFalse
- .Left = E.Cells(1, 2).Left
- .Top = E.Cells(1, 2).Top
- .Width = E.Cells(1, 2).Width '=Àx¦s®æ¼e«×
- .Height = E.Cells(1, 2).Height '=Àx¦s®æ°ª«×
- End With
- End If
- Next
- Next
- End With
- End Sub
½Æ»s¥N½X |
|