DeleteUser
function DeleteUser(sId: string = null): bool
Description
Removes a user from the current protected range.
Parameters
- sId
string
null The user ID.
Returns
bool
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.AddProtectedRange("protectedRange", "$A$1:$B$1");
var protectedRange = oWorksheet.GetProtectedRange("protectedRange");
protectedRange.AddUser("userId", "name", "CanView");
protectedRange.DeleteUser("userId");