I have constructed the following:
Workbooks.Open Filename:= _
"P:\word documents\INW Group\WORKING\Shipping_Data.xlsx"
Columns("A:Z").Select
Selection.EntireColumn.Hidden = False
Range("V1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$V$500").AutoFilter Field:=22, Criteria1:="<>"
Windows("Shipping_Data.xlsx").Activate
Range("V2:V77").Select
Selection.Copy
Windows("SO Tracking.xlsx").Activate
Range("C2").Select
ActiveSheet.Paste
Range("B2").Select
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("B2:B16")
Range("B2:B16").Select
Windows("Shipping_Data.xlsx").Activate
ActiveWindow.LargeScroll ToRight:=-1
Range("B2:B77").Select
Selection.Copy
Windows("SO Tracking.xlsx").Activate
Range("A2").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
However I need to incorporate a function, possibly .End(xlDown), because the data varies day by day and I don't want the end of the selection limited. I want it to select to the end of the data in that column.
Any help would be appreciated.
Workbooks.Open Filename:= _
"P:\word documents\INW Group\WORKING\Shipping_Data.xlsx"
Columns("A:Z").Select
Selection.EntireColumn.Hidden = False
Range("V1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$V$500").AutoFilter Field:=22, Criteria1:="<>"
Windows("Shipping_Data.xlsx").Activate
Range("V2:V77").Select
Selection.Copy
Windows("SO Tracking.xlsx").Activate
Range("C2").Select
ActiveSheet.Paste
Range("B2").Select
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("B2:B16")
Range("B2:B16").Select
Windows("Shipping_Data.xlsx").Activate
ActiveWindow.LargeScroll ToRight:=-1
Range("B2:B77").Select
Selection.Copy
Windows("SO Tracking.xlsx").Activate
Range("A2").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
However I need to incorporate a function, possibly .End(xlDown), because the data varies day by day and I don't want the end of the selection limited. I want it to select to the end of the data in that column.
Any help would be appreciated.