It is the very first thing you must check before doing anything else. If the corresponding Workbook is unavailable or not selected when compiling the VBA script ...