UserPermission.Remove Method
Removes the specified UserPermission object from the Permission collection of the active document.
Syntax
expression.Remove
expression Required. A variable that represents a UserPermission object.
Remarks
The UserPermission object associates a set of permissions on the active document with a single user and an optional expiration date. The Remove method removes the user and the set of user permissions determined by the specified UserPermission object.
Example
The following example removes the second user's permissions on the active document from the document's Permission collection.
| Visual Basic for Applications |
|---|
|