> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Types: OfficeJS: Comments and protection

## `AllowEditRangeOptions`

`Excel.AllowEditRangeOptions`.

Import from `@reductoai/xlsx/officejs`.

| Name | Type | Description |
| - | - | - |
| `password?` | `string` | |

## `CommentMention`

Import from `@reductoai/xlsx/officejs`.

| Name | Type | Description |
| - | - | - |
| `email` | `string` | |
| `id` | `number` | |
| `name` | `string` | |

## `CommentRichContent`

Import from `@reductoai/xlsx/officejs`.

| Name | Type | Description |
| - | - | - |
| `mentions?` | `CommentMention[]` | |
| `richContent` | `string` | |

## `CommentScope`

Where a collection looks: one sheet, or every sheet of the workbook.

Not exported by name. You get it from the API.

| Name | Type | Description |
| - | - | - |
| `book` | `Book` | |
| `range` | `(address: string) => ExcelRange` | |
| `sheets` | `() => ExcelWorksheet[]` | |

## `WorksheetProtectionOptions`

`Excel.WorksheetProtectionOptions`.

Import from `@reductoai/xlsx/officejs`.

| Name | Type | Description |
| - | - | - |
| `allowAutoFilter?` | `boolean` | |
| `allowDeleteColumns?` | `boolean` | |
| `allowDeleteRows?` | `boolean` | |
| `allowEditObjects?` | `boolean` | |
| `allowEditScenarios?` | `boolean` | |
| `allowFormatCells?` | `boolean` | |
| `allowFormatColumns?` | `boolean` | |
| `allowFormatRows?` | `boolean` | |
| `allowInsertColumns?` | `boolean` | |
| `allowInsertHyperlinks?` | `boolean` | |
| `allowInsertRows?` | `boolean` | |
| `allowPivotTables?` | `boolean` | |
| `allowSort?` | `boolean` | |
| `selectionMode?` | `"None" \| "Normal" \| "Unlocked"` | |
