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

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

قام بنشر
Sub Test()
    Dim w1 As Worksheet, w2 As Worksheet, c As Range, n As Long
    Set w1 = Sheets("2020"): Set w2 = Sheets("2021")
    n = w2.Cells(Rows.Count, 1).End(xlUp).Row + 1
    For Each c In w1.Range("A5").CurrentRegion.Columns(5).Cells
        If c.Value = "Active" Then
            w2.Range("A" & n).Resize(1, 5).Value = c.Offset(, -4).Resize(1, 5).Value
            n = n + 1
        End If
    Next c
End Sub

 

  • 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.

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

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

Important Information