UiPath Documentation
activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Atividades de produtividade

Run Spreadsheet Macro

UiPath.Excel.Activities.Business.ExecuteMacroX

Description

Executa uma macro especificada em uma pasta de trabalho habilitada para macro. Você pode passar argumentos da macro e salvar a saída da execução da macro. A atividade pode ser usada com um arquivo Excel selecionado para uma atividade Use Excel File pai ou com o Project Notebook.

Configurando a atividade

Painel do Designer

  • Source workbook - Select Plus on the right side of the field, and then select a workbook with the .xslm extension where to run the macro. Alternatively, you can select Open in Advanced Editor and enter a VB expression.

  • Macro name - Select Plus on the right side of the field, and then select Text to enter the macro name in the Text Builder. Alternatively, you can use one of the other options in the menu to indicate the macro name:

    • Dados do Project Notebook, um arquivo do Excel pai ou conta do Outlook. Por exemplo, selecione uma célula em um arquivo do Excel que contém o nome da macro.
    • Use Saved Value - Select a value in the form of a macro name that you previously saved for later use in the project.
    • Perguntar quando executar - Solicitação de um nome quando o projeto é executado.
    • Open in Advanced Editor - Enter a VB expression.
  • Output to - If the execution of the macro returns a value, select Plus on the right side of the field, and then use one of the options in the menu to indicate where to save the value:

    • Salve no Project Notebook ou em um arquivo pai do Excel. Por exemplo, você pode salvar em uma célula em um arquivo do Excel.
    • Salvar para uso posterior - Salve a saída para uso posterior em seu projeto como entrada para outra atividade.
    • Open in Advanced Editor - Enter a VB expression.
  • Add Macro Argument - Select this button to add an argument to use when executing the macro. Add as many arguments as are required by the macro.

Opções de Argumento de Macro

  • Argument value - Select Plus on the right side of the field, and then use one of the other options in the menu to add an argument value:

    • Dados do Project Notebook, um arquivo do Excel pai ou conta do Outlook. Por exemplo, selecione uma célula em um arquivo do Excel ou um campo em um email do Outlook selecionado que contém o valor.
    • Use Saved Value - Select a value that you previously saved for later use in the project.
    • Text - Enter text in the Text Builder.
    • Number - Enter a numeric value.
    • Perguntar quando executar - Solicitar um argumento quando o projeto é executado.
    • Open in Advanced Editor - Enter a VB expression.

Painel de Propriedades

Comum
  • DisplayName - The name displayed for the activity in the Designer panel.
Entrada
  • Nome da macro — consulte Nome da macro no corpo da atividade.
  • Nome da pasta de trabalho - Consulte Pasta de trabalho de origem no corpo da atividade.
Diversos
  • Particular — se selecionada, os valores de variáveis e argumentos não são mais registrados no nível Verbose.
Saída
  • Resultado da macro - Consulte Saída para no corpo da atividade.
  • Description
  • Configurando a atividade
  • Painel do Designer
  • Painel de Propriedades

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades