# Sheet panel

This panel includes fields for setting security for the spreadsheet in the MS Excel output file.

| Field                                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Sheet name (max. 31 characters)**  | Specify the worksheet's name in the MS Excel file to write the incoming rows from PDI. Variables or parameters can be used in this field.                                                                                                                                                                                                                                                                                                                                                                                 |
| **Make this the active sheet**       | <p>Specify whether the MS Excel file opens by default on the Excel sheet, above.</p><ul><li>Select this option to make the specified sheet the default when the file opens in Excel.</li><li>Clear this option if you do not want to set a default sheet.</li></ul>                                                                                                                                                                                                                                                       |
| **If sheet exists in output file**   | <p>Specify whether to replace an existing Excel sheet in the output file with the new sheet or to keep the original. For example, you may be using a template sheet or writing to existing files, and therefore may choose to overwrite or replace the sheet.</p><ul><li>Select <strong>Write to existing sheet</strong> to keep the existing sheet and write the new data to it.</li><li>Select <strong>Replace with new sheet</strong> to overwrite the existing sheet with the new sheet in the output file.</li></ul> |
| **Protect sheet? (XLS format only)** | <p>Specify whether to password protect the Excel sheet from changes.</p><ul><li>Select to protect the sheet from editing with a specified user and password.</li><li>Clear to leave the sheet unprotected. Any user can make changes to it.</li></ul>                                                                                                                                                                                                                                                                     |
| **Protected by user**                | Specify the name of the user you want shown in MS Excel as password-protecting this sheet. Variables or parameters can be used in this field.                                                                                                                                                                                                                                                                                                                                                                             |
| **Password**                         | Specify the password for unlocking the editing features for this sheet in MS Excel. Variables or parameters can be used in this field.                                                                                                                                                                                                                                                                                                                                                                                    |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pentaho.com/pdia-data-integration/10.2-data-integration/pdi-transformation-steps-reference-overview/microsoft-excel-writer/options-microsoft-excel-writer/file-and-sheet-tab/sheet-panel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
