Sub proteger()
For Each plan In ActiveWorkbook.Sheets
If plan.Cells.HasFormula = True Then
With plan
.Unprotect
.Cells.Locked = False
.Cells.FormulaHidden = False
.Cells.SpecialCells(xlCellTypeFormulas).Locked = True
.Cells.SpecialCells(xlCellTypeFormulas).FormulaHidden = True
.EnableSelection = xlUnlockedCells
.Protect
End With
End If
Next
End Sub