I have a macro that opens a file. If it does not find the file it END's the macro. This code works well on this macro however I created a "RUN ALL" macro and this code closed out of the entire process.
On Error Resume Next
'code to open file
If Err.Number <> 0 Then End
On Error GoTo 0
RUN ALL:
Application.Run("macro1")
Application.Run("macro2")
If the code in Macro1 does not find the file to open it stops but does not run Macro2.
Please help
On Error Resume Next
'code to open file
If Err.Number <> 0 Then End
On Error GoTo 0
RUN ALL:
Application.Run("macro1")
Application.Run("macro2")
If the code in Macro1 does not find the file to open it stops but does not run Macro2.
Please help