I want to check if all WORD files in de directory "folder" are protected.
If not than I want the macro to protect the document.
I was thinking about a code like
Can somebody help with a working code ?
If not than I want the macro to protect the document.
I was thinking about a code like
Code:
For Each f In fso.GetFolder(folder).Files
If f.ProtectionType = wdNoProtection Then
f.Protect Password:=ProtectPW, NoReset:=False, Type:=wdAllowOnlyReading, UseIRM:=False, EnforceStyleLock:=False
End If
Next
Can somebody help with a working code ?