UiPath Documentation
activities
latest
false
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

生産性を高めるアクティビティ

スプレッドシートのマクロを実行

UiPath.Excel.Activities.Business.ExecuteMacroX

マクロが有効化されたブック内で、指定したマクロを実行します。マクロ引数を渡して、マクロ実行の出力を保存できます。このアクティビティは、親の [ Excel ファイルを使用 ] アクティビティで選択した Excel ファイルまたはプロジェクト ノートブックに使用できます。

アクティビティの構成

アクティビティの本体
  • 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:

    • プロジェクト ノートブック、親の Excel ファイル、または Outlook アカウントからのデータ。たとえば、マクロ名を含む Excel ファイルのセルを選択します。
    • 保存された値を使用 - プロジェクトで後で使用するために以前保存した、マクロ名形式の値を選択します。
    • 実行時に確認 - プロジェクトの実行時に名前の入力を求めます。
    • 詳細エディターを開く - VB の式を入力します。
  • 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:

    • プロジェクト ノートブックまたは親の Excel ファイルに保存します。たとえば、Excel ファイルのセルに保存できます。
    • 後で使用するために保存 - 出力を、プロジェクトで後で別のアクティビティの入力として使用するために保存します。
    • 詳細エディターを開く - VB の式を入力します。
  • 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.

マクロ引数のオプション

  • 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:

    • プロジェクト ノートブック、親の Excel ファイル、または Outlook アカウントからのデータ。たとえば、Excel ファイルのセルか、値を含む、選択した Outlook メール内のフィールドを選択します。
    • 保存された値を使用 - プロジェクトで後で使用するために以前保存した値を選択します。
    • テキスト - テキスト ビルダーでテキストを入力します。
    • - 数値を入力します。
    • 実行時に確認 - プロジェクトの実行時に引数の入力を求めます。
    • 詳細エディターを開く - VB の式を入力します。
プロパティ パネル

共通

  • 表示名 - デザイナー パネルに表示されるアクティビティの名前です。

入力

  • マクロ名 - 「アクティビティの本体」の「マクロ名」をご覧ください。
  • ブック名 - 「アクティビティの本体」の「元のブック」をご覧ください。

その他

  • プライベート - オンにした場合、変数および引数の値が Verbose レベルでログに出力されなくなります。

出力

  • マクロの結果 - 「アクティビティの本体」の「出力先」をご覧ください。
  • アクティビティの構成

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得