Hi JM;
Sorry it took so long to get back to you. I've been sick in bed all week.
Subscript out of range on
is saying that there is no sheet with the tab name "Sheet4" in your workbook. Make sure it's not "Sheet 4" with a space.
If you have not changed codenames on any of the sheets then, in the Project Explorer the sheet name will be something like this:
Sheet?(Sheet4)
If you see this
Sheet4(SomeOtherName), then you're using the wrong terminology.
In Sheet4(SomeOtherName) - "Sheet4" is the codename, and "SomeOtherName" is the tab name.
is looking for a sheet with a tab name of "Sheet4"
it would actually be better code if you
Then you can change the tab name all you want and the code will still work. I did not use that code when I wrote it, because it's too hard to explain the difference between Codename and tab Name to people.
Bookmarks