|
本帖最后由 gwjkkkkk 于 2023-3-11 18:47 编辑
Option Explicit
Sub TEST()
Dim ar, br, i&, j&, dic As Object, wks As Worksheet
Application.ScreenUpdating = False
Set dic = CreateObject("Scripting.Dictionary")
ar = Sheets(1).[A1].CurrentRegion
For i = 1 To UBound(ar): dic(ar(i, 1)) = ar(i, 2): Next
br = Array(3, 5, 7)
For Each wks In Sheets
If wks.Name <> "数据库" Then
With wks
For j = 0 To UBound(br)
.Cells(10, br(j)) = dic(.Cells(6, br(j)).Value)
Next j
End With
End If
Next
Set dic = Nothing
Application.ScreenUpdating = True
Beep
End Sub
|
评分
-
1
查看全部评分
-
|