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

Ключ

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

...

Add new sheet Version 8 (Net)

Группа действийAction group: Excel 

Описание

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

...

Description

Adds a new sheet to an Excel document.

Icon

...

Parameters

Входные параметры  

Input parameters  

Context              Контекст                              Уникальный идентификатор сеанса, к которому будет применено действие.The unique identifier of the session to which the action will be applied.

New sheet name            Имя нового листа                Имя нового листа, который будет создан.

Настройки

The name of the new sheet to be created.

Settings

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

Property

Description

Type

Example of filling in

Obligatory to fill in the field

Parameters

ContextThe unique identifier of the session to which the action will be applied.Excel instance

Свойство

Англ. наименование

Описание

Тип

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

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

Параметры

КонтекстContextУникальный идентификатор сеанса, к которому будет применено действие.Идентификатор контекста ExcelEXCEL_INSTANCEДаYes
New sheet name

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

СтрокаЛист2Да

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

Лист будет добавлен после текущего листа и сразу активирован.

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

Задача

Имеется документ под названием Test с одним листом - Sheet1. Необходимо добавить новый лист и назвать его Sheet2. 

Решение

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

Реализация

...

The name of the new sheet to be created.

StringSheet2Yes

Special conditions for use 

The sheet will be added after the current sheet and activated immediately.

Example of use  

Task

There is a document named Test with one sheet - Sheet1. It is necessary to add a new sheet and name it Sheet2.  

Solution

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

Implementation

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

  2. Configure parameters for the "Open" action. In the "PathToFile" field, specify the path to the required Excel file. Check the "Open Visible" = true checkbox to display the robot's actions on the screen. 
    Image Added

  3. Configure parameters for the "Add new sheet" action. In the "Context" field specify the open context of the document, in the "New sheet name" field the value "Sheet2".
    Image Added

  4. Configure parameters 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 has completed successfully.  A new sheet named "Sheet 2" has been successfully added to the document

...

Результат 

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