Workbooks("workbook.xls").Worksheets("sheet") record. Error is
"subscript out of range."
the error means
workbook.xls doesn't exist
or
sheet doesn't exist.
If you have a workbook named workbook.xls and it contains a sheet named
sheet and it is open in excel, then you wouldn't get the error. (this
statement is based on what you have told us).
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.