Private Sub Cp_Data_Click()
Dim W, V(), R&, L&, C%
W = Replace("B1:B#&C1:C#", "#", Sheet2.Cells(Rows.Count, 3).End(xlUp).Row)
[Recos].ClearContents
W = Sheet2.Evaluate("IF({1},MATCH(RecoData[Date]&RecoData[Emp Code]," & W & ",0))")
With [RecoData].Rows
V = .Value
For R = 1 To .Count
If IsNumeric(W(R, 1)) Then Sheet2.Rows(W(R, 1)).Columns("K:N") = .Item(R).Value _
Else L = L + 1: For C = 1 To .Columns.Count: V(L, C) = V(R, C): Next
Next
End With
If L Then
With [Not_Match].Rows
If L > .Count Then .Item(2).Resize(L - .Count).Insert xlShiftDown
.Item(1).Resize(L, C - 1) = V
End With
End If
Application.Goto Sheet2.[A1], True
End Sub