J
Jayashri
I have some trouble protecting my document from being opened by unauthorised people. I have the following code
dim mydoc as visio.documen
set mydoc = activedocumen
mydoc.password()="xxxxx
mydoc.protection("xxxxx") = visprotectpreview
mydoc.saveas "c:\xx.vsd
mydoc.clos
set mydoc=nothin
I would expect that next time when I open the document, it would prompt me for the password before opening it. But no such thing happens. I am able to open the document without any problems. Any reason why it happens and how can we achieve the protection of the document programmatically. I would appreciate very much if anyone can give me a solution. Thanks in advance
Jayashr
dim mydoc as visio.documen
set mydoc = activedocumen
mydoc.password()="xxxxx
mydoc.protection("xxxxx") = visprotectpreview
mydoc.saveas "c:\xx.vsd
mydoc.clos
set mydoc=nothin
I would expect that next time when I open the document, it would prompt me for the password before opening it. But no such thing happens. I am able to open the document without any problems. Any reason why it happens and how can we achieve the protection of the document programmatically. I would appreciate very much if anyone can give me a solution. Thanks in advance
Jayashr