Can't see any apparent errors. I tested the code, and it's working for me. Can you check if the master workbook doesn't have a workbook protection?