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

¦p¦ó¦Û°Ê¨ú¥N·sªº¤º®e¸ê®Æ?

¦p¦ó¦Û°Ê¨ú¥N·sªº¤º®e¸ê®Æ?

¦pªþÀÉ¡AÁÂÁ¤j¤j! book.rar (5.91 KB)

¦^´_ 1# winston219
  1. Sub Ex()
  2. Dim A As Range
  3. Set d = CreateObject("Scripting.Dictionary")
  4. With Sheet2
  5. For Each A In .Range(.[A2], .[A65536].End(xlUp))
  6.    d(A.Value) = Array(A.Offset(, 2).Value, A.Offset(, 1).Value)
  7. Next
  8. End With
  9. With Sheet1
  10. For Each A In .Range(.[A2], .[A65536].End(xlUp))
  11.   If d.exists(A.Value) = True Then A.Offset(, 2).Resize(, 2) = d(A.Value)
  12. Next
  13. End With
  14. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

·PÁÂHsieh¤j¤j!§Ú¬Oªì¾ÇªÌ¡A¤£À´±zªºµ{¦¡¡A¦ýit's work! §Ú·|¦n¦n¬ã¨s±z©Ò¼gªº¤º®e¡A³o¼Ë¤~¯à¼W¥[VBAªº¥\¤O¡A¦A¦¸ÁÂÁ±z~

TOP

        ÀR«ä¦Û¦b : ¡i¦æµ½­n¤Î®É¡j¦æµ½­n¤Î®É¡A¥\¼w­n«ùÄò¡C¦p¿N¶}¤ô¤@¯ë¡A¥¼¿N¶}¤§«e¤d¸U¤£­n°±º¶¤õ­Ô¡A§_«h­«¨Ó´N¤Ó¶O¨Æ¤F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD