1004 is application defined or object defined error. with the method you are using, it could be any number of things. VBA isn't the greatest languages in the world, and is completely inconsistent in many ways. MS's fault, totally. see these first:
https://www.google.com/search?q=excel+vba+.Protect+
https://docs.microsoft.com/en-us/off...ksheet.protect
https://www.google.com/search?q=vba+excel+1004+error
https://stackoverflow.com/questions/...or-when-select
then, maybe try all of the following as possible fixes
furthermore, are you sure the code is the issue? If there is no sheet called Formulario de Nova Contratacao, that would also cause the error, obviously. no defined object in that case.
Bookmarks