| ©«¤l5923 ¥DÃD13 ºëµØ1 ¿n¤À5986 ÂI¦W0  §@·~¨t²Îwin10 ³nÅ骩¥»Office 2010 ¾\ŪÅv150 ©Ê§O¨k ¨Ó¦Û¥xÆW°ò¶© µù¥U®É¶¡2010-5-1 ³Ì«áµn¿ý2022-1-23 
         
 | 
                
| ¦^´_ 9# whirlwind963 ¸Õ¸Õ¬Ý
 ½Æ»s¥N½XOption Explicit
Sub Ex()
    Dim fs, f, e As Variant, i As Integer, xCol As Integer
    Sheets(1).Activate
    ActiveSheet.Pictures.Delete
    xCol = 3    'Äæ¼Æ
    Set fs = CreateObject("Scripting.FileSystemObject").GetFolder("D:\¬Û¤ù")
    For Each e In fs.subfolders  '¸ê®Æ§¨¶°¦Xª«¥ó
        i = 2       '¦C¼Æ
        Cells(i, xCol) = e.Name
        For Each f In e.Files    'ÀÉ®×¶°¦Xª«¥ó
            If UCase(Mid(f, InStr(f, ".") + 1)) = "JPG" Then
                i = i + 1
                With ActiveSheet.Pictures.Insert(f)
                    .Top = Cells(i, xCol).Top
                    .Left = Cells(i, xCol).Left
                    .Height = 49.5
                    .Width = 49.5
                    Cells(i, xCol).RowHeight = .Height
                    Cells(i, xCol).ColumnWidth = .Width / 5.5
                    End With
            End If
        Next
        xCol = xCol + 1   'Äæ¼Æ
    Next
End Sub
 | 
 |