اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

الردود الموصى بها

  • أفضل إجابة
قام بنشر

جرب هذا الماكرو

Option Explicit
Sub Unique_BY_Dictionary()
Rem ====>> Created By Salim Hasbaya On 30/8/2019
If ActiveSheet.Name <> "ورقة1" Then Exit Sub
Dim i%
Dim obj As Object
Range("D2", Range("D1").End(4)).ClearContents
Range("e2").ClearContents
Set obj = CreateObject("scripting.dictionary")
obj.CompareMode = 1
Dim last_ro: last_ro = Cells(Rows.Count, "B").End(3).Row
With obj
 For i = 2 To last_ro
    If Application.CountIf(Range("H2:H4"), Range("B" & i)) = 0 Then
    .Item(Range("B" & i).Value) = ""
    End If
Next
  Range("d2").Resize(.Count) = _
  Application.Transpose(.keys)
  Range("e2") = .Count
End With
End Sub

الملف مرفق

No_dup.xlsm

  • Like 2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information