ProtectedRange

ProtectedRange class

A specified range to be allowed to edit when the sheet protection is ON.

Properties

NameTypeDescription
NameStringGets the Range title. This is used as a descriptor, not as a named range definition.
CellAreaCellAreaGets the CellArea object represents the cell area to be protected.
IsProtectedWithPasswordbooleanIndicates whether the worksheets is protected with password.
PasswordStringRepresents the password to protect the range.
SecurityDescriptorStringThe security descriptor defines user accounts who may edit this range without providing a password to access the range.

Methods

NameDescription
getAreasGets all referred areas.
addAreaAdds a referred area to this

ProtectedRange.Name property

Gets the Range title. This is used as a descriptor, not as a named range definition.

Type: String

ProtectedRange.CellArea property

Gets the CellArea object represents the cell area to be protected.

Type: CellArea

ProtectedRange.IsProtectedWithPassword property

Indicates whether the worksheets is protected with password.

Type: boolean

ProtectedRange.Password property

Represents the password to protect the range.

Type: String

ProtectedRange.SecurityDescriptor property

The security descriptor defines user accounts who may edit this range without providing a password to access the range.

Type: String

getAreas()

Gets all referred areas.

Returns: Returns all referred areas.

addArea(startRow, startColumn, endRow, endColumn)

Adds a referred area to this

ParameterTypeDescription
startRowintThe start row.
startColumnintThe start column.
endRowintThe end row.
endColumnintThe end column.