ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó±a¥X«ü©w®æ¸ê®Æ

[µo°Ý] ¦p¦ó±a¥X«ü©w®æ¸ê®Æ

¤p§Ì¦³­Ó¿ï³æ¤W°ÝÃD, ¦]¿ï¶µ¤º®e¸ê®ÆÅܰʫܤj, §Ú·Q§Q¥Î¥N½X¦Ûsheet2¸ê®Æ°Ï¤¤, ±a¤J·Q­nªº¸ê®Æ¦Üsheet1ªí®æ

³Â·Ð¦U¦ì¥ý¶i!!
TEST2.rar (34.16 KB)

¦^´_ 1# luke
  1. Sub ex()
  2. Dim ay(2, 11)
  3. Set d = CreateObject("Scripting.Dictionary")
  4. With sheet2
  5. For Each a In .Range(.[A2], .[A2].End(xlDown))
  6.    d(a.Value) = a.Offset(, 1).Value
  7. Next
  8. End With
  9. With sheet1
  10. .[B1:k1].Copy .[B14]: r = 15
  11. For Each a In .Range(.[A2], .[A2].End(xlDown))
  12.   ar = a.Resize(, 11).Value
  13.   For i = 1 To 11
  14.     ay(0, i - 1) = ar(1, i)
  15.     ay(1, i - 1) = d(ar(1, i))
  16.   Next
  17.   .Cells(r, 1).Resize(2, 11) = ay
  18.   r = r + 3
  19.   Erase ay
  20. Next
  21. End With
  22. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ luke ©ó 2012-4-5 19:42 ½s¿è

¦^´_ 2# Hsieh


´ú¸ÕOK

ÁÂÁÂH¤j

TOP

        ÀR«ä¦Û¦b : ºÉ¦h¤Ö¥»¥÷¡A´N±o¦h¤Ö¥»¨Æ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD