My code opens a user-selected workbook and attempts to select the worksheet name that matches the current sheet in the original workbook. For some reason, the error handler doesn't get triggered if it doesn't find a matching sheet. I have copied the code to a new workbook, and it works fine there. Does anyone have ideas on what might nullify the error handler? In the code below, the FindSheetFailed is the one that won't work. Instead it gets a Subscript Out Of Range error if it doesn't find the sheet.
Bookmarks