|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- Sub main()
- Dim fp As String, Arr, i&, j&, k
- Application.ScreenUpdating = False
- Set Fso = CreateObject("Scripting.FileSystemObject")
- Set d = CreateObject("Scripting.Dictionary")
- fp = ThisWorkbook.Path & ""
- Call GetFiles(fp)
- k = d.Keys
- Arr = [a1].CurrentRegion
- For i = 2 To UBound(Arr)
- For j = 0 To UBound(k)
- If InStr(k(j), Arr(i, 1)) Then
- Cells(i, 2) = k(j): GoTo 100
- End If
- Next
- Cells(i, 2) = "不存在"
- 100:
- Next
- Application.ScreenUpdating = True
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|