I am using the following script to unlock the sheets in a workbook:
Sub WorksheetsUnlock(sheetName1, sheetName2)
I want to handle a situation where one or both sheets are not found. I am getting a pop up with the error. How to get this error in a variable?