kann mir jemand einen code nennen, wie ich auf allen meinen Tabellenblättern
alle Formeln schütze in denen eine Formel drin steht?
Vielen Dank
Martin
Sub FormelSchutz()
Selection.SpecialCells(xlCellTypeFormulas, 23).Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub
Sub aaaFormelSchutz()
Selection.SpecialCells(xlCellTypeFormulas).Select
ActiveSheet.Protect formulas:=True
End Sub
Sub FormelSchutz()
Cells.SpecialCells(xlCellTypeFormulas).Locked = True
ActiveSheet.Protect password:="xxx"
End Sub
Sub FormelSchutz()
Selection.SpecialCells(xlCellTypeFormulas, 23).Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub
Sub alleFormelnschützen()
Dim i As Long
Dim ws As Worksheet
On Error Resume Next
For Each ws In ActiveWorkbook.Worksheets
ws.Unprotect password = ppp
ws.Cells.SpecialCells(xlCellTypeFormulas).Locked = True
ws.Protect 'password = ppp
Next ws
End Sub