I am trying to run a macro using an existing workbook that 1) opens a different workbook I'll call other 2) copies values from other workbook 3) pastes values from other into existing workbook and 4) closes other workbook. Below is the code I have so far. Is there a way to better define or set y? My code works except I am not able to close other and I think if I had y better defined I could just use something like y.close. Thanks!
Dim x As Worksheet
Dim y As Worksheet
Set x = ActiveWorkbook.Sheets("File44")
Workbooks.Open (ThisWorkbook.Path & "\File44.xlsm")
Workbooks("File44.xlsm").Activate
Set y = ActiveWorkbook.Sheets("File44 - Detail")
LastRow = y.Range("A" & Rows.Count).End(xlUp).Row
y.Range("A15:CQ" & LastRow).Copy
x.Range("A2").PasteSpecial xlPasteValues
ActiveWorkbook.Close savechanges:=False