|
-
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
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
|