I have the following code in a spreadsheet. When I run it, always get an error on line 21; sometimes it's #70 (path not found) and occasionally it's #76 (permission denied).
However, when I copy the code to a blank workbook (along with the named ranges), the code works perfectly; everytime.
This is all stored in the same folder in a network drive, so I thought perhaps it was a network permission or something goofing things up, but the blank workbook debunked that theory.
Here is the code; can anyone tell me some ideas as to why I might be experiencing this problem? It's vague I know, but I don't know what else to say. If you have some ideas of what I could try to help narrow down the culprit, I'm all ears.
Thanks!
Bookmarks