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

¨Ó·½¸ê®ÆÄæ¦ì¤ñ¹ï«á¡A±N­È¶ñ¨ì¬ÛÀ³ªºsheet­¶­±Äæ¦ì¤º

¦^´_ 1# chi830


    source¤¤ID¨Ã¨S¦³»P§Aªº½d¨Ò¹ïÀ³
½ÐÀˬd¸ê®Æ½T»{¹ïÀ³±ø¥ó
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 3# chi830
  1. Sub ex()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. Set d1 = CreateObject("Scripting.Dictionary")

  4. With Sheets("index")
  5.    For Each a In .Range(.[B2], .[B2].End(xlDown))
  6.    d(a & "") = a.Offset(, -1).Text
  7.    Next
  8. End With
  9. With Sheets("source")
  10.    For Each a In .Range(.[A2], .[A2].End(xlDown))
  11.     d1(a & "," & a.Offset(, 1) & "," & a.Offset(, 2)) = a.Offset(, 3)
  12. Next
  13. End With
  14. For Each ky In d1.keys
  15. sh = d(Split(ky, ",")(0))
  16. With Sheets(sh)
  17. myid = .[A1]
  18.    For Each a In .Range(.[A3], .[A3].End(xlDown))
  19.      a.Offset(, 1).Resize(, 2) = Array(d1(myid & "," & a & "," & "01"), d1(myid & "," & a & "," & "02"))
  20.    Next
  21. End With
  22. Next
  23. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 6# chi830

¤£ª¾¹D³o¼Ë¹ï¤£¹ï?

    ¥X¶Ô.zip (167.8 KB)
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¸Ü¦h¤£¦p¸Ü¤Ö¡A¸Ü¤Ö¤£¦p¸Ü¦n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD