اذهب الي المحتوي
أوفيسنا

مسح اي قيمه تساوي صفر


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

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

 

الاساتذه الكراام

هل يوجد كود يمسح اي قيمة تساوي صفر في النطاق (A6:LV) الى اخر صف به بيانات فى العمود (B)

ولكم جزيل الشكر والاحترم

 

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

وعليكم السلام-تفضل

Sub DelZeros()
     Dim c As Range
    
     For Each c In Selection
         If c.Value = 0 Then c.ClearContents
     Next c
 End Sub
وهذا كود أخر

Sub RemoveZeros()
Dim Rng As Range
For Each Rng In ActiveSheet.UsedRange
  If Rng.Value2 = 0 Then Rng.ClearContents
Next Rng
End Sub
وأيضا يمكن مسح الخلايا المساوية للصفر وعدم إظهار الصفر وذلك عن طريق :

Excel Option

ثم Advanced

ثم نختار Display Option For this work sheet

وبعدين نحذف العلامة من على Show Zero وذلك كما بالصورة

بارك الله فيك

صورة للتوضيح.png

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

5 ساعات مضت, ali mohamed ali said:

وعليكم السلام-تفضل

Sub DelZeros()
     Dim c As Range
    
     For Each c In Selection
         If c.Value = 0 Then c.ClearContents
     Next c
 End Sub
وهذا كود أخر

Sub RemoveZeros()
Dim Rng As Range
For Each Rng In ActiveSheet.UsedRange
  If Rng.Value2 = 0 Then Rng.ClearContents
Next Rng
End Sub
وأيضا يمكن مسح الخلايا المساوية للصفر وعدم إظهار الصفر وذلك عن طريق :

Excel Option

ثم Advanced

ثم نختار Display Option For this work sheet

وبعدين نحذف العلامة من على Show Zero وذلك كما بالصورة

بارك الله فيك

صورة للتوضيح.png

شكرا استاذي واخى الفاضل على هذا العمل الرائع

جعله لله في ميزان حسناتك

images.jpg.de39356c021865a58c03917e103555b8.jpg

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

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