Change "Protect Document - Shapes" Programatically ?

M

mikeFin

Hello!

Is it possible to change programmatically (with VBA) the state of:

View -> Drawing Explorer -> "Right-Mouse-Click on Visio-File" -> Protect
Document -> Shapes

?

If yes, how can this be done?
 
M

mikeFin

Thanks this is working.

But I have one more question:
How do I set it back.
I mean "ThisDocument.Protection = visProtectShapes" does protect the shapes
on the document, but how do I unprotect them (programatically) ?

Thanks
 
Top