Document.Protect (Word)
Protege el documento especificado de cambios no autorizados.
Protect (Type, NoReset, Password, UseIRM, EnforceStyleLock)
ActiveDocument.Protect Type:=wdAllowOnlyComments
Arguments
Un argumento con nombre
Type - WdProtectionType
Valores posibles son
| wdAllowOnlyComments | Permitir que sólo se agreguen comentarios al documento. |
| wdAllowOnlyFormFields | Permitir que se agregue contenido al documento sólo mediante campos de formulario. |
| wdAllowOnlyReading | Permitir acceso de sólo lectura al documento. |
| wdAllowOnlyRevisions | Permitir realizar revisiones únicamente en el contenido existente. |
| wdNoProtection | No aplicar ninguna protección al documento. |
Optional arguments
Los siguientes argumentos son opcionales
NoReset - WdProtectionType
Valores posibles son
| wdAllowOnlyComments | Permitir que sólo se agreguen comentarios al documento. |
| wdAllowOnlyFormFields | Permitir que se agregue contenido al documento sólo mediante campos de formulario. |
| wdAllowOnlyReading | Permitir acceso de sólo lectura al documento. |
| wdAllowOnlyRevisions | Permitir realizar revisiones únicamente en el contenido existente. |
| wdNoProtection | No aplicar ninguna protección al documento. |
Password - String
UseIRM - Boolean
EnforceStyleLock - Boolean