ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Subscript Error (https://www.excelbanter.com/excel-programming/300733-subscript-error.html)

Lacys

Subscript Error
 
Could anyone tell me what "subscript out of range" means.
It's comming up where I have

Total=0
then a for loop to figure new total. Could someone please
help.

Thanks,
Lacy

Tom Ogilvy

Subscript Error
 
workbooks("nonexistentworkbookname.xls")

would give you a subscript out of range error. So using a non existent
index into a collection would be a prime cause for this type of error.

--
Regards,
Tom Ogilvy

"Lacys" wrote in message
...
Could anyone tell me what "subscript out of range" means.
It's comming up where I have

Total=0
then a for loop to figure new total. Could someone please
help.

Thanks,
Lacy





All times are GMT +1. The time now is 12:20 PM.

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