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

[µo°Ý] ¦p¦ó¥ÎVBA·j´M¨â¤u§@ªí¸ê®Æ

¦^´_ 1# ansonwen0107
  1. Sub searchdata()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. For Each sh In Sheets(Array("a", "b"))
  4.    With sh
  5.      For Each a In .Range(.[B2], .[B65536].End(xlUp))
  6.         d(a.Value) = Array(a.Offset(, -1).Value, a.Offset(, 1).Value, a.Offset(, 2).Value)
  7.      Next
  8.     End With
  9. Next
  10. With Sheets("´M§ä")
  11.    For Each a In .Range(.[A2], .[A65536].End(xlUp))
  12.       a.Offset(, 1).Resize(, 3) = ""
  13.       a.Offset(, 1).Resize(, 3) = d(a.Value)
  14.    Next
  15. End With
  16. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤H¤£©È¿ù¡A´N©È¤£§ï¹L¡A§ï¹L¨Ã¤£Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD