write protection for project files

A

Anne

Hi!

Is it possible to make Project file write protected? I
found the method "ReadOnly" but the usage was wrong
(thisProject.readOnly). The Object catalogue was not
helpful.

Anne
 
J

Jack D.

Anne said:
Hi!

Is it possible to make Project file write protected? I
found the method "ReadOnly" but the usage was wrong
(thisProject.readOnly). The Object catalogue was not
helpful.

Anne


This will save the file "readonlytest.mpp" file as a read-only password
protected file.

Sub Readonly()
FileSaveAs Name:="C:\readonlytest.mpp", FormatID:="MSProject.MPP",
WriteResPassword:="mypassword"
End Sub

As far as I know setting the read only password can only be done when saving
the file, so you need to save the file somewhere in your procedure.

--
Please try to keep replies in this group. I do check e-mail, but only
infrequently. For Macros and other things check http://masamiki.com/project

-Jack Dahlgren, Project MVP


+++++++++++++++++++
 

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