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

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

  • أفضل إجابة
قام بنشر
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim sh As Long, v As Long, r As Long, lr As Long, i As Long, ii As Long
    If Target.Address = "$Q$4" Then
        Application.ScreenUpdating = False
        Application.EnableEvents = False
            Range("A10:T60000") = ""
            sh = Worksheets.Count: v = 10
            For r = 1 To sh
                If Sheets(r).Name <> ActiveSheet.Name Then
                    lr = Sheets(r).Range("i" & Rows.Count).End(xlUp).Row
                    For i = 10 To lr
                        If Range("Q4") = Sheets(r).Cells(i, 9) Then
                            Cells(v, 1).Resize(, 20).Value = Sheets(r).Cells(i, 1).Resize(, 20).Value
                            v = v + 1
                        End If
                    Next i
                End If
            Next r
        Application.EnableEvents = True
        Application.ScreenUpdating = True
    End If
End Sub

 

  • Like 2

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