Hi,

To unprtect at start of code -

sheets("Master").Unprotect("password")
And protect at end -

sheets("Master").Protect("password")
Alter password and sheet name as required.

Hope that helps

Dave H