|
liulang0808 发表于 2014-1-9 17:14
Sub 汇总表()
Dim arr, d, sh As Worksheet, i, j As Integer
Set d = CreateObject("Scripting.Dictio ...
Sub 汇总表()
Dim arr, d, sh As Worksheet, i, j As Integer
Set d = CreateObject("Scripting.Dictionary")
Sheet5.[b4:k9] = ""
For j = 1 To 10
For Each sh In Sheets
If sh.Name <> "汇总表" Then
Set arr = sh.Range("a5").CurrentRegion For i = 6 To 17
If arr(i, 10) = Sheet8.Cells(5, j + 1) Then
d(arr(i, 4)) = ""
End If
Next
End If
Next
[Sheet8].[a5].Offset(0, j).Resize(d.Count) = WorksheetFunction.Transpose(d.keys)
d.RemoveAll
Next
Set d = Nothing
End Sub
大大。这样你看看还有啥呢么问题么,我按照你说的弄了,还是出不来 |
|