So I have a code that copies over data from other workbooks i wanted a button to do so thus I have a runallmacros command that my code is contained with there aren't always as many books to be copied as I put in the code so the code works perfectly but when it jumps to the next command and finds that there is no file path it returns error 400 ...no big deal but I'm a perfectionist...is there a line of code I can put in that's basically like if this block of code can't run end macro and stop trying to move further through the code? If that doesn't make sense I'll post my code just let me know...thanks!