|
- Sub gj23w98()
- Set d = CreateObject("scripting.dictionary")
- r = Cells(Rows.Count, 3).End(3).Row
- arr = Range("a1:bi" & r)
- m = UBound(arr): n = UBound(arr, 2)
- For i = 4 To m
- s = arr(i, 1) & arr(i, 3)
- d(s) = Cells(i, 7).Resize(, n)
- Next
- For Each sht In Sheets
- If sht.Name <> ActiveSheet.Name Then
- With sht
- r = .Cells(.Rows.Count, 3).End(3).Row
- brr = .Range("a1:bi" & r)
- m = UBound(brr): n = UBound(brr, 2)
- For i = 4 To m
- s = brr(i, 1) & brr(i, 3)
- If d.exists(s) Then .Cells(i, 7).Resize(, n) = d(s)
- Next
- End With
- End If
- Next
- MsgBox "OK!"
- End Sub
复制代码 |
评分
-
1
查看全部评分
-
|