Hi all
Got some code which in a nutshell checks workbook name, opens another and sends out some emails.
Part of the code I'm using gets the 1st workbook name, pastes it into a cell of the 2nd (which has an on change event to call the 2nd macro) which the code uses to set as the workbook:
Open second workbook
When the code gets to Workbooks(snm).activate, I get Runtime Error 9 but the code finishes and the emails are sent anyway.
Does anyone know how I can get around this please?
Preferably without Application.DisplayAlerts = False or On Error Resume Next
Thank you
Bookmarks