- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 254
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-23
|
¦^´_ 1# jackyliu
¹Ï¤ù©R¦W³W«h¤£¬O«ÜÀ´¡A¥ý¸Õ¸Õ³o¼Ë¬Ý«ç¼Ë¤£¦P- Sub Ex()
- Dim A As Range, C As Range
- ar = Array("C", "F", "T")
- ay = Array(8, 9, 10)
- ak = Array("", 0, 1, 2, 3)
- fd = "C:\TEST\" '¹Ï¤ù¥Ø¿ý
- With Sheet1
- .Pictures.Delete
- For Each C In .Range(.[C3], .[C65536].End(xlUp))
- r = C.Row
- For i = 0 To 2
- For j = 0 To 3
- mystr = IIf(ak(j) = "", "", "-" & ak(j))
- fs = C & "-" & ar(i) & mystr & ".jpg"
- If Dir(fd & fs) <> "" Then
- Set A = .Cells(r, IIf(j = 0, ay(i), 10 + j))
- With .Pictures.Insert(fd & fs)
- .Top = A.Top: .Left = A.Left: .Height = A.Height: .Width = A.Width
- End With
- End If
- Next
- Next
- Next
- End With
- End Sub
½Æ»s¥N½X |
|