rossbritton26
New Member
- Joined
- Jul 28, 2011
- Messages
- 33
Hi,
I have some code with opens a file one at a time from a list and this works fine until the file in the list cannot be found in the already specified location.
My only problem is what the code does when the file cannot be found.
Currently, Excel displays a error message and then gives me the option to End or Debug, however as the list of files can be quite large I would just like to skip to "Next k" and resume running the code as if nothing as happened.
I have tried many combinations of onerror etc. but can't seem to crack it,
any ideas?
Ross.
I have some code with opens a file one at a time from a list and this works fine until the file in the list cannot be found in the already specified location.
My only problem is what the code does when the file cannot be found.
Currently, Excel displays a error message and then gives me the option to End or Debug, however as the list of files can be quite large I would just like to skip to "Next k" and resume running the code as if nothing as happened.
I have tried many combinations of onerror etc. but can't seem to crack it,
any ideas?
Ross.