Hi

may be..

Sub kTest()
    
    Dim k(), ka, i As Long, n As Long, c As Long, Cols
    Dim MatchKey    As String
    
    ka = Sheets("PROGRESS 
TRACKING-DATA").Range("a1").CurrentRegion.Resize(, 16)
    Cols = Array(6, 7, 8, 5, 9, 12, 14, 15)
    MatchKey = LCase$(Sheets("REPORT-INDEX").Range("i1"))
    
    ReDim k(1 To UBound(ka, 1), 1 To 8)
    
    For i = 2 To UBound(ka, 1)
        If LCase$(ka(i, 16)) = MatchKey Then
            n = n + 1
            For c = 0 To UBound(Cols)
                k(n, c + 1) = ka(i, Cols(c))
            Next
        End If
    Next
    If n Then
        With Sheets("REPORT-INDEX")
            .Range("a8").Resize(1000, 8).ClearContents
            .Range("a8").Resize(n, UBound(k, 2)) = k
        End With
    End If
    
End Sub

Kris

 

-- 
FORUM RULES (986+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5)  Cross-promotion of, or links to, forums competitive to this forum in 
signatures are prohibited. 

NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to