ich möchte über ein "IF Abfrage" wissen ob die Datei geschütz ist.
dann soll es weiter gehen.
Gruß Walter
Sub Schutz()
If ThisWorkbook.ProtectStructure Then
MsgBox "Mappenstruktur geschützt!"
End If
If ThisWorkbook.ProtectWindows Then
MsgBox "Fenster geschützt!"
End If
If ThisWorkbook.ProtectStructure And ThisWorkbook.ProtectWindows Then
MsgBox "Mappenstruktur und Fenster geschützt!"
End If
End Sub