Checking only style protection?

P

periodic

I would like to check if a document has protection from changing the styles.
But is open for editing. I tried this first:

If ActiveDocument.ProtectionType <> wdNoProtection Then
MsgBox "please remove document protection"
Exit Sub
End If

But it seems like word only really consider a document protected if its
protected from editing as well.

Is it at all possible to check if a styles are protected? And if so how?
I am using word 2003
 
R

Russ

I believe you are right.
You can section off parts of the document to be protected with sections,
while other parts aren't. But you can't protect part of a page.
Changing a document into a PDF file, offers more style protection.

But what are trying to accomplish?
The normal way to enter data in document formfields is to protect that part
of the document. Then all the user can do is enter data.

You, as the owner of the template that the document was based on, would
change styles in the template. If you store the template out of Normal.dot,
then it won't be altered unless the .dot file is opened. You don't want the
user to open the .dot file. They should be opening a new document based on
the template.
 
P

periodic

I am trying to make my own work a little bit easier. Since i am in charge of
the final layout and template with the styles. I would just have something in
the top of a macro checking that stuff are OK saying that if the styles are
protected I should remove the protection and the macro stops running (or in a
flashier version ask for the password and then removes the protection
itself). The macro should also update styles from the template, which it cant
do if the document is protected from modifying styles

The only way I can protect the documents so far is that no one else is going
to change the styles. And especially not adding new once since it will make a
mass of things one I compile all files to a master document.
 

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