This is the code I am trying to use and it isn't quite working. I am not sure what I did wrong since I am still learning VBA. Can anyone help me to get this to work?
Sub BringDataToMasterSheet()
Dim WB As ThisWorkbook
Dim x As WorkSheet
Dim y As WorkSheet
Dim z As WorkSheet
'## Open Workbooks first:
Set x = Worksheet.Open("Delinquent Promises Detail")
Set y = Worksheet.Open("Delinquent Shipments Detail")
Set z = Worksheet.Open("Master")
'Now, copy what you want from x:
x = Worksheet("Delinquent Promises Detail").Range("A2").lastrow.Copy
z = Worksheet("Master").Range("A").lastrow.PasteSpecial
y = Worksheet("Delinquent Shipments Detail").Range("A2").lastrow.Copy
z = Worksheet("Master").Range("A").lastrow.PasteSpecial
End Sub