is_protected property

VbaProject.is_protected property

Shows whether the VbaProject is password protected.

@property
def is_protected(self) -> bool:
    ...

Examples

Shows whether the VbaProject is password protected.

doc = aw.Document(file_name=MY_DIR + 'Vba protected.docm')
self.assertTrue(doc.vba_project.is_protected)

See Also