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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top