Enable permission : Office Permmison « Application « VBA / Excel / Access / Word






Enable permission

 

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.Add users
2.The Permission of current workbook
3.Show User Permissions
4.Remove Permissions
5.Show Permissions
6.Set office Permission