How to open a word document read only

sven2

Registered User.
Local time
Today, 14:45
Joined
Apr 28, 2007
Messages
297
Hello,

is it possible to open a word document as read only from access.
I have stored the hyperlink into a table but now I want that the user only can read the document.

Thanks in advance,
Sven.
 
SetAttr ("c:\FolderName\FileName.doc"), vbReadOnly

To change back

SetAttr ("c:\FolderName\FileName.doc"), vbNormal
 
Hello,

Is the command SetAttr to combine with followhyperlink ?

This is the code that I use:

stAppName = c:\test.doc
FollowHyperlink stAppName

How can I combine this with the code below?
SetAttr ("c:\FolderName\FileName.doc"), vbReadOnly

Best regards,
Sven.
 
Set it to ReadOnly first. Then do whatever else is required.

Also, readonly is not like locking an Access field. When the Word doc is open you can edit it but you can't save the changes.
 
Hello,

how do I set the word-document to read only with vba code?

Best regards,
Sven.
 

Users who are viewing this thread

Back
Top Bottom