Code for Opening a Closed Workbook
Workbooks.Open Filename:="C:\My Files\Function.xls"
a workbook isn't in the workbooks collection (which is what you show) until
it is opened and is currently open.
--
Regards,
Tom Ogilvy
scrabtree23 wrote in message
...
I am trying to open a closed workbook using VBA code. I
used this code:
Workbooks("Functions.xls").Open
In the "ThisWorkbook" Object using a Workbook_Open () and
got a "Subscript out of range" error.
|