ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Compare two worksheets using VBA in Microsoft Excel (https://www.excelbanter.com/excel-programming/313464-compare-two-worksheets-using-vba-microsoft-excel.html)

Break80[_2_]

Compare two worksheets using VBA in Microsoft Excel
 

That is what I did when I had the problem

--
Break8
-----------------------------------------------------------------------
Break80's Profile: http://www.excelforum.com/member.php...fo&userid=1527
View this thread: http://www.excelforum.com/showthread.php?threadid=26900


Tom Ogilvy

Compare two worksheets using VBA in Microsoft Excel
 
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).

--
Regards,
Tom Ogilvy

"Break80" wrote in message
...

That is what I did when I had the problem.


--
Break80
------------------------------------------------------------------------
Break80's Profile:

http://www.excelforum.com/member.php...o&userid=15277
View this thread: http://www.excelforum.com/showthread...hreadid=269002





All times are GMT +1. The time now is 05:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com