PDA

View Full Version : Read only file



dspalir
05-11-2015, 05:29 AM
Hello. I have another question, thanks for the help in the previous issue.

My problem is.. I open specific dokument(word,excel), but now i want to do in this way, that every dokument that i opened it will be in ReadOnly mode. So every file will be automatical opened in readonly mode, so that no one will be able to change the file.

13321

this is my code, i hope someone will know what i mean :)

jonh
05-11-2015, 07:01 AM
SetAttr "C:\some_file.txt", vbReadOnly

... is equivalent to right clicking the file, going to properties and setting the r/o attribute.

dspalir
05-13-2015, 10:40 PM
done it, tnx :)