thank you. I had a look at my codes and realised that they are linked to another sheet which is protected.