Workbook permissions restricted : Workbook Permission « Excel « VBA / Excel / Access / Word






Workbook permissions restricted

 
Sub RestrictPermission()
    Dim myPermission As Office.Permission, wb As Workbook
    Set myPermission = ThisWorkbook.Permission
    myPermission.Enabled = True
End Sub

 








Related examples in the same category

1.Workbook permissions removed -- workbook access is no longer restricted through IRM.
2.'Show User Permissions
3.Granted permission to two users.
4.See VBA Immediate window for a list of permissions and users.