# Закрыть объект Excel

![](/files/nUYjBU82x17svdxVD28W)

Данный шаблон этапа нужен для корректного закрытия файла (книга) и программы (объект) Excel. Этап позволяет завершить работу программы Excel корректно, избегая утечек памяти и незавершенных, висящих в оперативной памяти процессов. Их можно отследить через диспетчер задач Windows. Шаблон включает следующие параметры:

* Объект Excel. Необходимо в колонке Этап выбрать шаблон типа "Получить объект Excel"
* Книга Excel. Необходимо в колонке Этап выбрать шаблон типа "Открыть файл excel"


---

# 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.onerpa.ru/rpa-platforma-onerpa/shablony-etapov/shablony-etapov-ms-office/excel/zakryt-obekt-excel.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.
