Assuming that cell B5 and K10 is not locked, the code should be :
If above code is not worked, probably caused by other code that you have (as you stated here, you have 5 modules of code) :

Originally Posted by
sandu1
Hello,
I am difficulties in running macro on protected sheets.
I have 5 modules also codes on each sheet. Now, I have to protect the sheet for unauthorized user input.
Its throwing an error while I try to execute the code now. Please suggest.
Thanks
Sandu
and we can't help without seeing all your code that may cause this, you need to post your workbook so we can analyze the problem.
Bookmarks