|
参与一下。。。
- Sub ykcbf() '//2024.7.25
- Set fso = CreateObject("scripting.filesystemobject")
- Application.ScreenUpdating = False
- Set ws = ThisWorkbook
- p = ThisWorkbook.Path & "\检校证书扫描件"
- ReDim brr(1 To 1000, 1 To 5)
- For Each f In fso.GetFolder(p).Files
- If LCase$(f.Name) Like "*.pdf" Then
- fn = fso.GetBaseName(f)
- m = m + 1
- brr(m, 1) = m
- brr(m, 2) = fn
- brr(m, 5) = f
- End If
- Next f
- With ws
- With .Sheets("检校证书")
- .[a4:e1000] = ""
- .[a4].Resize(m, 5) = brr
- End With
- ' With .Sheets("模糊查询")
- ' .[a3:e1000] = ""
- ' .[a3].Resize(m, 5) = brr
- ' End With
- End With
- Application.ScreenUpdating = True
- MsgBox "OK!"
- End Sub
复制代码
|
评分
-
1
查看全部评分
-
|