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

كود حذف المكرر والابقاء على قيمة واحدة فقط 1


عن هذا الملف

الكود يقوم بحذف المكرر من القيم والابقاء على قيمة واحدة فقط

ويعمل على مدى مفتوح

ولا يقوم بحذف الصف بالكامل وانما يقوم بالحذف بطريقة الازاحة الى اعلى


Sub Abu_Ahmed_Del()

LR = [A1000].End(xlUp).Row

For i = LR To 1 Step -1

If Application.CountIf(Range("A1:A" & LR), Cells(i, 1)) > 1 Then Cells(i, 1).Delete Shift:=xlUp

   Next

End Sub

  • Like 1

اراء المستخدمين

Recommended Comments

السلام عليكم..

هل يمكن استخدام الكود لدف المكرر في عمود واحد فقط والابقاء على باقي الاعمدة كما هي؟؟

ارجو الافادة وجزاك الله كل خير

  • Like 1
رابط هذا التعليق
شارك

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.

×
×
  • اضف...

Important Information