Try this:
Now run this in the developer window.Please Login or Register to view this content.
The message box pops up as you would expect.
Now move the sub to ThisWorkbook and change its name to Workbook_Open ... The sub now behaves as if On Error GoTo HandleErr just plain wasn't there. Indeed, all on error goto <handler_name> statements in every function in the stack are ignored when ThisWorkbook.Workbook_Open is called.
What the heck??
Bookmarks