|
-
Aug 16th, 2005, 07:36 AM
#1
Thread Starter
Lively Member
MSWord - readonly and protected, what's the difference?
I'm trying to get a line of code right, but am having trouble understanding the difference between these two things.
Basically, I want to say, "if the document is readonly, remove the readonly property".
VB Code:
If ActiveDocument.ReadOnly = True Then
ActiveDocument.Unprotect
End If
This doesn't work as apparently the file is readonly but not protected.
Readonly is an unassignable property, so it's not possible to declare
ActiveDocument.Readonly = False
-
Aug 16th, 2005, 07:50 AM
#2
Re: MSWord - readonly and protected, what's the difference?
Protected means that Word has been set to protect the contents of the file. Read only is a file level setting (right-click select Properties) and can't be unset from within Word. It will need to be unmarked from outside Word somehow.
Tg
-
Aug 16th, 2005, 07:56 AM
#3
Thread Starter
Lively Member
Re: MSWord - readonly and protected, what's the difference?
So if a file was protected I couldn't for example edit some of the text and save as a new document?
Thanks for clearing that up
-
Aug 16th, 2005, 08:02 AM
#4
Re: MSWord - readonly and protected, what's the difference?
Correct.... I think that's the way it works.
With Read-Only you can change the content, but then you have to do a File -> Save As... with it.
Tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|