Name

permission.RemoveAll( )

Synopsis

Revokes all users’ permissions. Only the document’s author remains in the list of permitted users. For example, the following code removes the users from the workbook’s Permission object:

    Set irm = ThisWorkbook.Permission
    irm.RemoveAll

Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.