- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 102
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-4-28
               
|
¦^´_ 1# luke - Sub ¶×¤J()
- Dim ary() As String, rw As Long, Mystr$, MyPath$
- rw = 2: i = 0
- path1 = "D:\TEST\"
- file1 = Dir(path1 & "*.*", vbDirectory) '¥u³B²z¸ê®Æ§¨
- Do While file1 <> ""
- If file1 <> "." And file1 <> ".." And _
- GetAttr(path1 & file1) = vbDirectory Then
- i = i + 1
- ReDim Preserve ary(i)
- ary(i) = file1
- End If
- file1 = Dir
- Loop
- For i = 1 To UBound(ary)
- Cells(rw, 1) = ary(i)
- MyPath = path1 & ary(i) & "\"
- fs = Dir(MyPath & "*.ccc")
- Open MyPath & fs For Input As #1
- Line Input #1, Mystr
- Cells(rw, 7) = Mid(Mystr, 2)
- Close #1
- rw = rw + 1
- Next i
- End Sub
½Æ»s¥N½X |
|