- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 246
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-12
|
¦^´_ 1# luke - Sub ex()
- Dim ay(2, 11)
- Set d = CreateObject("Scripting.Dictionary")
- With sheet2
- For Each a In .Range(.[A2], .[A2].End(xlDown))
- d(a.Value) = a.Offset(, 1).Value
- Next
- End With
- With sheet1
- .[B1:k1].Copy .[B14]: r = 15
- For Each a In .Range(.[A2], .[A2].End(xlDown))
- ar = a.Resize(, 11).Value
- For i = 1 To 11
- ay(0, i - 1) = ar(1, i)
- ay(1, i - 1) = d(ar(1, i))
- Next
- .Cells(r, 1).Resize(2, 11) = ay
- r = r + 3
- Erase ay
- Next
- End With
- End Sub
½Æ»s¥N½X |
|