Private Sub cmd_Import_Click()
Application.ScreenUpdating = False
Dim r, i As Workbook
Dim rws2, iws1 As Worksheet
Dim Rng As Range
Dim RngList As Object
Dim rLR2 As Long
Dim x As Long
Set r = ThisWorkbook
Set rws2 = ThisWorkbook.Sheets("Consolidated")
Set RngList = CreateObject("Scripting.Dictionary")
Set i = Workbooks.Open("\\Path")
Set iws1 = i.Sheets("Data")
For Each Rng In rws2.Range("C2", rws2.Range("C" & rws2.Rows.Count).End(xlUp))
If Not RngList.Exists(Rng.Value & Rng.Offset(0, 3) & Rng.Offset(0, 9)) Then
RngList.Add Rng.Value & Rng.Offset(0, 3) & Rng.Offset(0, 9), Nothing
End If
Next Rng
For Each Rng In iws1.Range("A2", iws1.Range("A" & iws1.Rows.Count).End(xlUp))
x = rws2.Range("C" & Rows.Count).End(xlUp).Row + 1
If Not RngList.Exists(Rng.Value & Rng.Offset(0, 2) & Rng.Offset(0, 4)) Then
rws2.Range("C" & x) = iws1.Range("A" & Rng.Row)
rws2.Range("D" & x) = iws1.Range("B" & Rng.Row)
rws2.Range("F" & x) = iws1.Range("C" & Rng.Row)
rws2.Range("J" & x) = iws1.Range("D" & Rng.Row)
rws2.Range("L" & x) = iws1.Range("E" & Rng.Row)
rws2.Range("M" & x) = iws1.Range("F" & Rng.Row)
rws2.Range("N" & x) = iws1.Range("G" & Rng.Row)
rws2.Range("O" & x) = iws1.Range("H" & Rng.Row)
rws2.Range("P" & x) = iws1.Range("I" & Rng.Row)
rws2.Range("Q" & x) = iws1.Range("J" & Rng.Row)
rws2.Range("S" & x) = iws1.Range("K" & Rng.Row)
rws2.Range("T" & x) = iws1.Range("L" & Rng.Row)
rws2.Range("U" & x) = iws1.Range("M" & Rng.Row)
rws2.Range("V" & x) = iws1.Range("N" & Rng.Row)
rws2.Range("W" & x) = iws1.Range("O" & Rng.Row)
rws2.Range("Y" & x) = iws1.Range("P" & Rng.Row)
If iws1.Range("Q" & Rng.Row) = "" Then
rws2.Range("Z" & x) = iws1.Range("R" & Rng.Row)
Else
rws2.Range("Z" & x) = Trim(iws1.Range("Q" & Rng.Row) & " " & iws1.Range("R" & Rng.Row))
End If
rws2.Range("AA" & x) = iws1.Range("S" & Rng.Row)
rws2.Range("AB" & x) = iws1.Range("T" & Rng.Row)
rws2.Range("AC" & x) = iws1.Range("U" & Rng.Row)
rws2.Range("AD" & x) = iws1.Range("V" & Rng.Row)
rws2.Range("AE" & x) = iws1.Range("W" & Rng.Row)
End If
Next Rng
RngList.RemoveAll
Workbooks("Pending_Import").Close
Application.ScreenUpdating = True
End Sub