TA的每日心情![](source/plugin/dsu_paulsign/img/emot/kx.gif) | 开心 昨天 15:23 |
---|
签到天数: 69 天 [LV.6]常住居民II
管理员
- 积分
- 2704
|
Sub aa1_Click()
Application.ScreenUpdating = False
Set fso = CreateObject("scripting.filesystemobject")
Set ff = fso.getfolder(ThisWorkbook.Path)
ActiveSheet.UsedRange.ClearContents
a = 1
For Each f In ff.Files
If f.Name Like "*.txt" Then
Cells(a, 1) = f.Name
Cells(a, 2) = f
a = a + 1
End If
Next f
Application.ScreenUpdating = True
End Sub |
|