it all depends on what you are trying to do, without seeing some code, it is difficult to know what you require... But an example of how to carry on when running into errors is simple.
Here is an example of something you might do
Basically by putting my try catch block in a seperate function and handle any errors that might occur and the main Sub will continue executing regardless.Code:Private Sub MainCodeToExecute() If ConnectToExternalProgram() Then ' Do whatever it is you needed to do End If ' Code that you execute regardless End Sub Private Function ConnectToExternalProgram() As Boolean Try ' Code to connect to external program Return True Catch Return False End Try End Function
I hope this is what you meant.



LinkBack URL
About LinkBacks




Reply With Quote
Bookmarks