Hi,
I have three pieces of code that do various stuff and are called from a button and run one after another. My problem lies in the first code. The code checks whether a file exists. If it does all is well. If it doesn't, I have used Exit Sub. But after it uses the Exit Sub the code jumps to the next piece of code and cause an error.
How do I get the code to completely stop at Exit Sub?
I have three pieces of code that do various stuff and are called from a button and run one after another. My problem lies in the first code. The code checks whether a file exists. If it does all is well. If it doesn't, I have used Exit Sub. But after it uses the Exit Sub the code jumps to the next piece of code and cause an error.
How do I get the code to completely stop at Exit Sub?