You can use a Sub Routine (via Command Button etc) but again this does not prevent the user from protecting / unprotecting the sheet by "normal" means and toggling sheet protection via normal means is not a Volatile action.