Assuming your sheet is protected with a password, and you know thepassword, you only need add the following code to your procedure.ActiveSheet.Unprotect "Password"Do StuffActiveSheet.Protect "Password"