- ©«¤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
![2017 Âû¦~¥þ¶Ô¼ú³¹ 2017 Âû¦~¥þ¶Ô¼ú³¹](images/common/ji.gif) ![2016µU¦~¥þ¶Ô¼ú³¹ 2016µU¦~¥þ¶Ô¼ú³¹](images/common/hou.gif) ![2015¦Ï¦~¥þ¶Ô¼ú³¹ 2015¦Ï¦~¥þ¶Ô¼ú³¹](images/common/yang.gif) ![2014°¨¦~¥þ¶Ô¼ú³¹ 2014°¨¦~¥þ¶Ô¼ú³¹](images/common/ma.gif) ![2013³D¦~¥þ¶Ô¼ú³¹ 2013³D¦~¥þ¶Ô¼ú³¹](images/common/she.gif) ![2012Às¦~¥þ¶Ô¼ú³¹ 2012Às¦~¥þ¶Ô¼ú³¹](images/common/long.gif) ![½×¾Â°^Äm¾±³¹ ½×¾Â°^Äm¾±³¹](images/common/medal5.gif) ![¼ö¯P°Ñ»P¾±³¹ ¼ö¯P°Ñ»P¾±³¹](images/common/medal7.gif) ![2011¨ß¦~¥þ¶Ô¼ú³¹ 2011¨ß¦~¥þ¶Ô¼ú³¹](images/common/tu.gif)
|
¦^´_ 5# c_c_lai
2# ¦³»~ ¤w§ó¥¿- Option Explicit
- Sub Ex()
- Dim j As Integer, MyPath As String
- j = 2
- MyPath = "D:\My Pictures\"
- While Cells(j, "C") <> ""
- If UCase(Cells(j, "C")) Like "*ABCD*" Then '¦r¦ê¤¤¦³"ABCD"
- 'UCase ¨ç¼Æ ¶Ç¦^¤@Ó Variant (String)¡A©Ò§t¬°Âন¤j¼g¤§¦r¦ê¡C
- Cells(j, "D").Select
- Selection.RowHeight = 82
- If Dir(MyPath & Cells(j, "C")) <> "" Then
- With ActiveSheet.Pictures.Insert(MyPath & Cells(j, "C"))
- ' .ShapeRange.LockAspectRatio = msoTrue
- ' ¦b½Õ¾ã¹Ï®×¤j¤p®É¡A¥i¥H¤À§O¦a½Õ¾ã¹Ï®×ªºªø«×©M¼e«×
- .ShapeRange.LockAspectRatio = msoFalse
- .ShapeRange.Height = IIf(.ShapeRange.Height > 100, 100, .ShapeRange.Height)
- .ShapeRange.Width = IIf(.ShapeRange.Width > 200, 200, .ShapeRange.Width)
- .ShapeRange.Rotation = 0#
- .Placement = xlMoveAndSize
- .PrintObject = True
- End With
- End If
- End If
- j = j + 1
- Wend
- Range("C2").Select
- End Sub
½Æ»s¥N½X |
|