I am trying to run a simple macro that will copy from a downloaded workbook with a variable name to a workbook with a permanent name.
The UnitAvailabilityDetails11_08_2021.xlsx changes daily with the date. I'm sure this is a simple solution so thanks in advance!
VBA Code:
Sub CopyUA()
Workbooks("UnitAvailabilityDetails11_08_2021.xlsx").Worksheets("Report1").Range("A10:R300").Copy
Sheets("Unit Availability").Range("A8").PasteSpecial Paste:=xlPasteValues
End Sub
The UnitAvailabilityDetails11_08_2021.xlsx changes daily with the date. I'm sure this is a simple solution so thanks in advance!