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

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

قام بنشر

السلام عليكم

تفضل

Option Explicit
Sub Ali_Hid()
Dim R As Range
Dim Rng As Range
For Each R In [E1:E500]
    If R > "" And R.Offset(0, 1) > "" Then
    If R = "--" And R.Offset(0, 1) = "--" Then
       If Rng Is Nothing Then
            Set Rng = R
          Else
            Set Rng = Union(Rng, R)
       End If
    End If
    End If
Next R
If Not Rng Is Nothing Then Rng.EntireRow.Hidden = True
Set Rng = Nothing
End Sub

 

  • Like 3
قام بنشر

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

Sub Dont_SHow_empty()
show_all
Range("C3").Formula = "="""""
Range("L3").Formula = "=OR(E4<>""--"",F4<>""--"")"
Range("C3").CurrentRegion.AdvancedFilter Action:=xlFilterInPlace, _
CriteriaRange:=Range("L2:L3")
Range("L2:L3").Clear
Range("C3").Clear
End Sub
'=======
Sub show_all()
On Error Resume Next
ActiveSheet.ShowAllData
On Error GoTo 0
End Sub

الملف مرفق

 

my_book.xlsm

  • Like 3
  • Thanks 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.

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

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

Important Information