История страницы
...
Run macro Version 9 (Net)
Группа действийAction group: Excel
Описание действия
Запускает макрос.
Иконка действия
Параметры
Входные параметры
Контекст - Контекст действия для работы с Excel-документами/
Имя макроса - Наименование макроса, который будет запущен.
...
Description
The action runs the macro.
Action icon
Parameters
Input parameters
Parameter | Description |
---|---|
Context | Action context for working with an Excel document. |
Macro name | The name of the macro that will be run. |
Settings
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with an Excel document | Robin.Excel | Excel context | Yes |
Macro name | The name of the macro that will be run | Robin.String | Yes |
Особые условия использования
Отсутствуют.
Пример использования
Задачи
Special conditions of use
None.
Example of use
Tasks
There is an Excel-document Существует Excel-документ "Test.xlsm".
Необходимо
запустить макрос по подсчету количество записей на страницеRun a macro to count the number of records on a page.
Решение
Solution
- For any actions with a specific Excel-document, you should first open the document, create its unique identifier (Context), so that further actions can be applied to a specific document. Open the document Для любых действий с конкретным Excel-документом, необходимо сперва открыть документ, создать его уникальный идентификатор (Контекст), чтобы в дальнейшем обращать действия именно к конкретному документу. Открыть документ "Test.xlsx".
- Запустить макросRun the macro.
- Сохранить документSave the document.
Реализация
Implementation
- Assemble a robot scheme with the actionsСобрать схему робота, состоящего из действий:
- Укажем параметры в действии “Open”. (см. описание действия "Открыть Set the "Open" action parameters (see action description "Open").
- Укажем параметры в действии Set the "Run macro" action parameters.
- Укажем параметры в действии Set the "Save" (см. описание действия "Сохранить документaction parameters (see action description "Save").
- Запустить робота по кнопке "Запуск" в верхней панели.
Результат
- Run the robot by clicking "Start" in the top panel.
Result
The document contains the result of the macro executionДокумент содержит результат выполнения макроса.
Обзор
Инструменты контента