I want to use the Workbooks
object (for example) as below:
Debug.Print Workbooks("C:\temp\file1.xlsm").path
while the file1
workbook is closed.
But I'm encountering a Subscript out of range
Run-time error.
What is wrong and how can I work with the Workbook object without needing to open the appropriate workbook?