I cannot figure out why when I execute the copy it always pastes the results to column 3 and not col 1?
I also tried VisRange.Copy Destination:=wst.range("a" & MsfT_LastRow)
Thanks in advance
' Get work sheet
Set wsf = Sheets("TASK - Map and Validation")
Set wst = Sheets("MASTER - Supplier File")
' Get table
Set tblMSFT = wst.ListObjects("MSF_Table")
Set tblMAV = wsf.ListObjects("MAV_Table")
'=====================================================================================
' Get the last data row in Map and Validation Table
With tblMSFT.Range
MsfT_LastRow = .Cells(.Cells.Count).Row
End With
'=====================================================================================
' Filter table
tblMAV.Range.AutoFilter Field:=1, Criteria1:="New"
' Copy filtered table
Set VisRange = tblMAV.DataBodyRange.SpecialCells(xlCellTypeVisible)
Set VisRange = Application.Intersect(VisRange, wsf.Columns("B:R"))
If MsfT_LastRow = 2 Then
VisRange.Copy Destination:=wst.Range("a2")
Else
MsfT_LastRow = MsfT_LastRow + 1
VisRange.Copy Destination:=wst.Cells(MsfT_LastRow, 1)
End If
Copy Data From One Table to Another