- ©«¤l
- 9
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 16
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-1-25
- ³Ì«áµn¿ý
- 2024-6-10
|
³o¬O§Ú§ä¨ì¤ñ¸û²Å¦Xªºµ{¦¡½X
§Ú§ï¦n¤[³£§ï¤£¥X¨Ó§Únªº«ü©wÄæ¦ì»P§âÀɦW¥h±¼
¯à½Ð¤j¤j¥æ§Ú¶Ü
ÁÂÁÂ- Sub Ex()
- Dim AR(), i As Integer, ii As Integer, fs As String, Rng As Range
- With ActiveSheet
- .Cells = ""
- .Pictures.Delete
- fs = Dir("D:\_Picture\1\*.jpg")
- Do Until fs = ""
- ReDim Preserve AR(0 To i)
- AR(i) = fs '¹Ï¤ù¦WºÙ¸m¤J°}¦C
- fs = Dir
- i = i + 1
- Loop
- For i = 0 To UBound(AR) Step 2
- For ii = 0 To 1
- If ii + i <= UBound(AR) Then
- .Cells(Int(i / 2) + 1, 1 + (ii * 2)) = AR(ii + i)
- Set Rng = .Cells(Int(i / 2) + 1, 2 + (ii * 2))
- With .Pictures.Insert("D:\_Picture\1\" & AR(ii + i))
- .Top = Rng.Top
- .Left = Rng.Left
- .Width = Rng.Width
- .Height = Rng.Height
- End With
- End If
- Next
- Next
- End With
- End Sub
½Æ»s¥N½X |
|