- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 11# whirlwind963
¦^´_ 13# GBKEE
¬P´Á¤éµL²á¡A«K°Êµ§×§ï¤F GBKEE ¤j¤jªºµ{¦¡¡G (±æ¤£n¤¶·N)- Option Explicit
- Sub Ex2()
- Dim j As Integer, k As Integer, MyPath As String, MyFile As String
-
- Application.ScreenUpdating = False
-
- ActiveSheet.Pictures.Delete
- j = 2
- While Cells(j, "C") <> "" ' CÄ欰ÀɦW
- For k = 1 To 2
- MyPath = Cells(j, k)
- ' AÄæ,BÄ欰¦ì§} ¨Ò¦p: D:\My Pictures\15\ ¡B¤Î E:\Amazing Pictures\16\ µ¥µ¥¡C
- If UCase(Cells(j, "C")) Like "*ABCD*" Then ' ¦r¦ê¤¤¦³"ABCD"
- On Error Resume Next
- MyFile = Dir(MyPath & "*" & Cells(j, "C") & "*.*")
- If MyFile <> "" Then
- Cells(j, IIf(k = 1, 4, 5)).Select ' D,EÄæ
- With ActiveSheet.Pictures.Insert(MyPath & MyFile)
- .ShapeRange.LockAspectRatio = msoFalse
- .ShapeRange.Height = 100#
- .ShapeRange.Width = 100#
- .ShapeRange.Rotation = 0#
- .Placement = xlMoveAndSize
- .PrintObject = True
- End With
- End If
- End If
- Next
- j = j + 1
- Wend
- Range("C2").Select
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|