What I would like is a bit of code that would look down Column A in my worksheets (Debit by Co&Vend from the code below) and give the answer of the last cell in that column with values in it. The answer to the first part would then be used to replace Selection.AutoFill Destination:=Range("B2:D5000")
with Selection.AutoFill Destination:=Range("B2:whatever last cell is").
At the moment the code i have is not looking for the last cell as i have chosen a range that is big enough to make sure i dont miss entries.
Sheets("Debit by Co&Vend").Select
Range("B2:D2").Select
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("B2:D5000")
Range("B2:D5000").Select
Columns("A:D").Select
Selection.Copy
with Selection.AutoFill Destination:=Range("B2:whatever last cell is").
At the moment the code i have is not looking for the last cell as i have chosen a range that is big enough to make sure i dont miss entries.
Sheets("Debit by Co&Vend").Select
Range("B2:D2").Select
Application.CutCopyMode = False
Selection.AutoFill Destination:=Range("B2:D5000")
Range("B2:D5000").Select
Columns("A:D").Select
Selection.Copy