# When writing to existing sheet panel

This panel includes options for customizing how you want content to appear when it is written to an existing spreadsheet.

| Field                                                           | Description                                                                                                                                                                                                                                                                                                                                                                 |
| --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Start writing at end of sheet (appending lines) (check box)** | <p>Decide if you want the output to begin at the last defined row of the spreadsheet.</p><ul><li>Select this option if you want the step to append rows after the last defined row of the spreadsheet.</li><li>Clear this option if you want the step to overwrite existing defined rows.</li></ul>                                                                         |
| **Offset by ... rows**                                          | Specify any non-zero number to cause the step to move this amount of rows down (positive numbers) or up (negative numbers) before writing rows. Negative numbers may be useful if you need to append to a sheet, but still preserve a pre-styled footer.                                                                                                                    |
| **Begin by writing ... empty lines**                            | <p>Specify any positive number to cause the step to leave this amount of rows empty.</p><p>When writing to an existing sheet, you may decide to write a few empty lines first. This option is useful if you want to append a few rows to an existing sheet, but offset them to see the bounds of each generated block of rows.</p>                                          |
| **Omit header (check box)**                                     | <p>Decide if you want to include a header when writing to an existing spreadsheet. Omitting a header is useful if you want to generate new files with a header, but you do not want to repeat the header in subsequent runs where you append to the same file.</p><ul><li>Select this option to omit the header.</li><li>Clear this option to include the header.</li></ul> |


---

# 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/content-tab/when-writing-to-existing-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.
