Compare two worksheets using VBA in Microsoft Excel

  • Thread starter Thread starter Break80
  • Start date Start date
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).
 

Ask a Question

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.

Ask a Question

Back
Top