Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

Checking only style protection?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
periodic - 13 Jul 2007 00:46 GMT
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
Russ - 13 Jul 2007 01:44 GMT
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.

> I would like to check if a document has protection from changing the styles.
> But is open for editing. I tried this first:
[quoted text clipped - 9 lines]
> Is it at all possible to check if a styles are protected? And if so how?
> I am using word 2003

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

periodic - 13 Jul 2007 13:20 GMT
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.

> I believe you are right.
> You can section off parts of the document to be protected with sections,
[quoted text clipped - 24 lines]
> > Is it at all possible to check if a styles are protected? And if so how?
> > I am using word 2003
Russ - 13 Jul 2007 18:22 GMT
You should research what has been said about master documents and
corruption.
This link is a start.

> 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
[quoted text clipped - 36 lines]
>>> Is it at all possible to check if a styles are protected? And if so how?
>>> I am using word 2003

Signature

Russ

drsmN0SPAMikleAThotmailD0Tcom.INVALID

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.