Devo cambiare gli attributi di un documento WORD in modo da renderlo di sola lettura;
nel web ho trovato questa routine VBA:
Const ReadOnly = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.GetFile("C:\Scripts\Test.doc") If objFile.Attributes AND Read-write Then objFile.Attributes = objFile.Attributes XOR Read-write End IfMa non funziona; nel senso che il documento rimane di lettura/scrittura.
Come posso fare?