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

كود لمسح خلايا محددة


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

السلام عليكم ورحمة الله وبركاته

تحية طيبة وبعد

أريد كود برمجى يقوم بمسح الخلايا المظللة باللون الأصفر فقط

ولسيادتكم خالص الشكر والتقدير

Delete.rar

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

ربما ينفع هذا الكود

Option Explicit

Sub del_special_cells()
Dim cel As Range
    With Application
    .ScreenUpdating = False
    .Calculation = xlCalculationManual
    End With
For Each cel In Range("a10").CurrentRegion
If cel.Interior.ColorIndex = 6 Then _
cel.Value = vbNullString
Next
    With Application
.ScreenUpdating = True
.Calculation = xlCalculationAutomatic
    End With
End Sub

 

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

أخى وأستاذى الحبيب / سليم حاصبيا

سلمت يمينك وزادك الله من علمه ومن فضلة

كود ممتاذ وقام بالمطلوب

ألف شكرا

جزاك الله خير

 

  • 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