Excel VBA requiring file extension for workbook reference in some systems
问题 I have a simple excel VBA that is referring multiple files and copying information across to a master before processing. While building this on my own system a workbook reference (working perfectly fine) was written as: Workbooks("key").Sheets("Sheet1").Range("A1:X57").Copy Here key is a .xlsx file While using this in another system this does not work and it explicitly requires the file extension in every call. Workbooks("key.xlsx").Sheets("Sheet1").Range("A1:X57").Copy It would not be