- ©«¤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
|
¦^´_ 2# hugh0620
¸Õ¸Õ¬Ý- Option Explicit
- Private Sub CommandButton1_Click()
- Dim myPath As String
- Dim K As Integer
- Dim F As Object, E As Object
- With Application.FileDialog(msoFileDialogFolderPicker)
- 'If .ButtonName = "½T©w" Then
- '**¤£ºÞ§A¬O§_«ö¤U½T©wÁä,©Î¬OÃö³¬¹ï¸Üµøµ¡, ** ³o¦æµ{¦¡½X³£¬O¥¿½Tªº ***'
- If .Show = True Then '¦³«ö¤U½T©wÁä
- myPath = .SelectedItems(1)
- Set F = CreateObject("Scripting.FileSystemObject").GetFolder(myPath).Files
- 'FileSystemObject ª«¥ó ¦³´£¨ÑÀɮפº®eªºÄÝ©Ê¥i¥Î
- If F.Count > 0 Then
- Cells.Clear
- K = 5
- Cells(K, "a") = "No"
- Cells(K, "b") = "¸ô®|"
- Cells(K, "c") = "µÀɮצWºÙ"
- Cells(K, "d") = "Àɮפj¤p"
- Cells(K, "E") = "Àɮ׫¬ºA"
- For Each E In F
- If E.Type = "MP3 ®æ¦¡Ánµ" Then '«ü©w§AªºÀɮ׫¬ºA: "¼vµÀÉ"
- K = K + 1
- Cells(K, "a") = K - 5
- Cells(K, "b") = myPath
- Cells(K, "c") = E.Name
- Cells(K, "d") = Format(E.Size / 1024, "#,000 KB")
- Cells(K, "E") = E.Type
- End If
- Next
- End If
- End If
- End With
- End Sub
½Æ»s¥N½X |
|