segmentationfault
Programmer
Is there a way to deal with a failed Workbooks.Open without an On Error statement? For example, if the workbook is already open and changed, a dialog appears asking the user if she wants to reopen the workbook and lose the changes. If she clicks "No", the Open method throws an error. Is it possible to disregard this error without the cludgy On Error handlers?
If it is not possible, then I have considered encapsulating any call to Workbooks.Open in its own sub containing an On Error statement. As I understand it, though, an On Error statement retains relevance even after execution has left that subroutine. How can I use an On Error statement in one sub but then return to the default error behavior afterwards?
If it is not possible, then I have considered encapsulating any call to Workbooks.Open in its own sub containing an On Error statement. As I understand it, though, an On Error statement retains relevance even after execution has left that subroutine. How can I use an On Error statement in one sub but then return to the default error behavior afterwards?