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

اخفاء خلية تساوى صفر وبها معادلات


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

السلام عليكم

اخوتى يوجد عندى ملف به معادلات كثيرة ومن ضمن هذة المعادلات قيم تخرج (بصفر) فاردت اخفاء هذة الخلية من الورقة لان قيمتها تساوى صفر

فبحثت ووجد معادلة وعند تطبيقها لايمكن لتوقف عمل الكود

وهذا هو الكود

Private Sub Worksheet_Calculate()

Application.ScreenUpdating = False

For Each cell In Range("k10:k49")

If cell.Value = 0 Then

cell.EntireRow.Hidden = True

End If

Next cell

Application.ScreenUpdating = True

End Sub

فماذا افعل برجاء افادتى فى هذا الكود

" ملحوظة "

هل المعادلات تؤثر على الكود ام لا لاننى شيلت المعادلات وخليت قيمة الخلية تساوى صفر فاشتغل الكود

وشكرا

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

Private Sub Worksheet_Calculate()
Application.ScreenUpdating = False
Application.EnableEvents = False
For Each cell In Range("k1:k49")
If cell.Value = 0 Then
cell.EntireRow.Hidden = True
End If
Next cell
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub

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

  • 2 weeks later...

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