isProtected property

VbaProject.isProtected property

Shows whether the VbaProject is password protected.

get isProtected(): boolean

Examples

Shows whether the VbaProject is password protected.

let doc = new aw.Document(base.myDir + "Vba protected.docm");
expect(doc.vbaProject.isProtected).toEqual(true);

See Also