- ©«¤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
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2011-9-28 15:24 ½s¿è
¦^´_ 1# child - Option Explicit
- Dim i As Integer
- Sub Ex()
- Dim Fs, F
- Sheets(1).Activate
- Range("A1:C65536").ClearContents
- i = 1
- Set Fs = CreateObject("Scripting.FileSystemObject").GetFolder("D:\TEST")
- Cells(i, 1).Resize(1, 2) = Array(Fs, Fs.DateLastModified)
- For Each F In Fs.SubFolders
- i = i + 1
- Cells(i, 1).Resize(1, 2) = Array(F, F.DateLastModified)
- ¤l¸ê®Æ§¨ F
- Next
- End Sub
- Private Sub ¤l¸ê®Æ§¨(TheFolder)
- Dim Fs As Object, F As Object
- Set Fs = CreateObject("Scripting.FileSystemObject").GetFolder(TheFolder)
- For Each F In Fs.SubFolders
- i = i + 1
- Cells(i, 1).Resize(1, 2) = Array(F, F.DateLastModified)
- ¤l¸ê®Æ§¨ F
- Next
- End Sub
½Æ»s¥N½X |
|