All I want to do is the check that the workbook contains the words AddIn in it's name. If it does activate it, if not end the sub. I can't get it right. Latest attempt doesn't work.
If wb.Name Like "*AddIn*" Then wb.Activate Exit Sub End If
Error = "End if without block if".
Any help appreciated