История страницы
Rename sheet Version 2 (Net)
Action group
Переименовать лист
Группа действий: Excel
Описание
...
Description
The action allows you to rename a sheet in Действие позволяет переименовать лист в Excel.
...
Icon
...
Settings of parameters
...
Property |
---|
Description |
---|
Тип
Пример заполнения
Обязательность заполнения поля
Type | Example of filling in | Obligatory to fill in the field | ||
---|---|---|---|---|
Parameters | ||||
Context | Action context for working with Excel documents | Excel instance |
Параметры
EXCEL_INSTANCE |
Yes |
Sheet identification |
method |
Выпадающий список из элементов: "По имени листа", "По индексу листа"
Выбор способа идентификации листа для переименования: по имени или индексу.
A drop-down list of elements: "Via sheet name", "Via sheet index" Selects whether to identify the sheet to be renamed by name or by index | String | Yes | ||
Sheet name | Name of the sheet to which the action will be applied. If the parameter indicates a hidden sheet, the action will cause an error. | String | No | |
Sheet index | The sequence number of the sheet to which the action will be applied. The numbering starts with "1". If the parameter indicates a hidden sheet, the action will cause an error. | Numeric | No | |
New sheet name | The new name of the sheet. The name must not exceed 31 characters in length, contain |
Sheet Name
Sheet index
New sheet name
":", "/", "\", "?", "*", "[" |
and "]", |
otherwise the action will fail. |
String |
Особые условия использования
Робот вернет ошибку, если:
- параметр указывает на скрытый лист;
- введены несуществующие данные для идентификации листа;
- введено некорректное "Новое имя листа".
- Имена листов не должны быть пустыми, не должны превышать 31-го символа и не должны содержать двоеточий, косых черт, вопросительных знаков, звездочек и квадратных скобок.
Если пользователь введет значения в оба поля "Имя листа" и "Индекс листа", робот не выдаст ошибку. Выбор будет произведен способом, указанным в "Способе идентификации".
Пример использования
Задача: необходимо переменовать первый лист в Excel-документе на "Новый лист".
Решение: воспользоваться действиями "Открыть", "Переименовать лист", "Сохранить".
Реализация:
- Собрать схему робота из действий:
- Настроить параметр действия "Открыть".
- Настроить параметры действия "Переименовать лист".
- Настроить параметр действия "Сохранить".
- Запустить робота по кнопке "Старт" в верхней панели.
Результат:
Программный робот отработал успешно.
Первый лист в документе переименован.
Yes |
Special conditions of use
The robot will return an error if:
- a parameter indicates a hidden sheet;
- non-existent data for sheet identification is entered;
- an incorrect "New sheet name" is entered.
- Sheet names must not be empty, must not exceed 31 characters and must not contain colons, slashes, question marks, asterisks and square brackets.
If the user enters values in both fields "Sheet name" and "Sheet index", the robot will not generate an error. The selection will be made in the way specified in "Sheet identification method".
Example of use
Task: you need to rename the first sheet in an Excel document to "New sheet".
Solution: use the actions "Open", "Rename sheet", "Save".
Implementation:
- Assemble a robot scheme from the actions:
- Customize the "Open" action parameter.
- Customize the parameters of the "Rename sheet" action.
- Customize the "Save" action parameter.
- Launch the robot using the "Start" button in the top panel.
Result:
The software robot worked successfully.
The first sheet in the document has been renamed.