Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Add sheet Version 1 (Python)

Группа действий: Офис 

Описание

Действие добавляет новый лист в документ

Image Removed

Настройки

...

Свойство

...

Описание

...

Тип

...

Пример заполнения

...

Обязательность заполнения поля

...

Параметры

...

Контекст

...

Контекст действия для работы с таблицей ods/xlsx

...

Robin.OpenSheetDoc

...

Да

...

Имя нового листа

...

Имя нового листа, который будет создан. Он будет добавлен после активного. Новый лист станет активным листом

...

Robin.String

...

Нет

Особые условия использования

Отсутствуют

Пример использования 

Задача: имеется документ под названием Test с одним листом - Лист 1. Необходимо добавить новый лист и назвать его Лист 2. 

Решение: воспользоваться действиями "Открыть", "Добавить лист", "Сохранить". 

Реализация: 

...

Настроить параметр для действия "Открыть" (указать путь к файлу). 

  Image Removed

...

Action group: Office

...

Description

The action adds a new sheet to the document

Action icon

Image Added

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ContextAction context for ods/xlsx documentRobin.OpenSheetD oc
Yes
New sheet nameThe name of the new sheet to be created. It will be added after the active one. The new sheet will become the active sheetRobin.String
No

Special conditions of use

None.

Example of use

Task 

There is a document called Test with one sheet - Sheet 1. You need to add a new sheet and name it Sheet 2. 

Solution

Use the actions "Open", "Add sheet", "Save". 

Implementation

  1. Assemble a robot scheme consisting of actions:
     
    Image Added


  2. Set the "Path to file" parameter for the "Open" action. 

      Image Added

  3. Set parameters for the "Add sheet" action. In the "Context" field specify the open context of the document, in the "New sheet name" field the value "Sheet 2". 
    Image Added
  4. Set the parameter for the "Save" action. Specify the context of the Excel document in the Context parameter. 
    Image Added
  5. Launch the robot using the "Start" button in the top panel.

Result

The program robot completed successfully.

A new sheet named "Sheet 2" has been successfully added to the document. 

Image Added

 

...

Результат: Программный робот отработал успешно.  Новый лист под названием "Лист 2" успешно добавлен в документ. 

Image Removed