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

¶×¥X_¦ý¤£­«ÂжץXªº¸ê®Æ

¦^´_ 2# Hsieh

   Dear ¶Wª©¥D ¤j¤j

  ¯uªº«Ü·PÁ§A,«Ü§Öªº´N¸Ñ¨M§Úªº°ÝÃD,§Ú¤]¦³±N±zªº¨C¦æµ{¦¡½X²Ó²Ó´ú¸Õ¨Ã¤F¸Ñ
  ¤j¤j¥Îªº¤è¦¡¬O¥ý±N¸ê®Æ°O¿ý°_¨Ó,¦A¥Î°}¦Cªº¤è¦¡¤ñ¹ï,¬Ý¬O§_¦³¤£¤@¼Ëªº¸ê®Æ
  ¦A±N¤£¤@¼Ëªº¸ê®Æ°O¿ý°_¨Ó,³Ì«á¦A±N¤£¤@¼Ëªº¸ê®Æ©ñ¦bDATA¤¤

  ¦]¬°§Úµ¹¤j¤jªº½d¨Ò¬OÄÝ©ó±ø¥ó¦¡³£¬O¦b¤@°_ªº±¡ªp¤U,¦ý¬O¤j¤j­Y§Úªº±ø¥ó­×§ï¬°¤£¬O³sÄòªº±¡ªp¤U (¥ç·¥±ø¥ó»P±ø¥ó¤¤¶¡¬O¦³¨ä¥L¸ê®Æªº®É­Ô)
  §Ú¦³¸ÕµÛ¦Û¦æ­×§ï,¦ýµL©`¤p§Ì¥\¤O©|²L,µLªk¥Î¤j¤jªº¼Ò¦¡­×§ï¦n
  ¥u¦n¦A½Ð¤j¤j«ü±Ð

  ªþ¥ó¬°°ÝÃD¤§½d¨Ò ¶×¥X_¦ý¤£­«ÂÐ_©µ¦ùÃD.rar (10.68 KB)

TOP

¦^´_ 1# hugh0620
  1. Private Sub CommandButton1_Click()
  2. Dim Ay()
  3. Set d = CreateObject("Scripting.Dictionary")
  4. With Sheet2
  5. ar = .Range(.[B5], .[B5].End(xlDown).Offset(, 2))
  6. For i = 1 To UBound(ar, 1)
  7. mystr = Join(Application.Index(ar, i))
  8. d(mystr) = d.Count
  9. Next
  10. With Sheet1
  11. ar = .Range(.[B5], .[B5].End(xlDown).Offset(, 3))
  12. For i = 1 To UBound(ar, 1)
  13. mystr = Join(Array(ar(i, 1), ar(i, 2), ar(i, 3)))
  14. If d.exists(mystr) = False Then
  15. ReDim Preserve Ay(s)
  16. Ay(s) = Application.Index(ar, i)
  17. s = s + 1
  18. End If
  19. Next
  20. End With
  21. If s > 0 Then .[B65536].End(xlUp).Offset(1, 0).Resize(s, 4) = Application.Transpose(Application.Transpose(Ay))
  22. End With
  23. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¤@­Ó¤Hªº§Ö¼Ö¡D¤£¬O¦]¬°¥L¾Ö¦³±o¦h¡A¦Ó¬O¦]¬°¥L­p¸û±o¤Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD