Excel basic の [開く] action の使用

[開く] actionを使用して、Microsoft Excel スプレッドシートを読み取り専用モードまたは読み取り/書き込みモードで開いたり、パスワードを使用してスプレッドシートを開いたりすることができます。

手順

Microsoft Excel スプレッドシートを開くには、次の操作を行います。

  1. [アクション] パレットの [Excel の基本操作] package から、[開く] action をダブルクリックまたはドラッグします。
  2. Microsoft Excel スプレッドシートをどこから開くか選択します。
    注: Excel ファイルで許可されているデータサイズの上限が 21 億件を超えるようになりました。 これにより、Excel basic packageを使用して XLSX ワークブック内の反復作業を自動化しながら、より大きな Excel ファイルを含めることができます。
    • Control Room ファイル: Control Room からファイルを開くことができます。
      注: Control Room からエクセルファイルを開き、ファイルに変更を加えた場合、更新されたファイルは Control Room に保存されません。この action は、デスクトップから開いた Excel ファイルのみ対応しています。
    • デスクトップ ファイル: デバイスからファイルを開くことができます。このフィールドには、文字列変数またはグローバル値としてファイル パスを入力することもできます。
    • 変数: ファイル変数を指定してファイルを開くことができます。
  3. Microsoft Excel スプレッドシートにヘッダー行が含まれている場合は、[ワークシートにヘッダーを含む] チェックボックスをオンにします。
  4. [特定のシート名] オプションを選択して、Microsoft Excel スプレッドシートが開いたときに有効にするシートの名前を指定します。
  5. Microsoft Excel スプレッドシートを読み取り専用で開くには [読み取り専用モード] を選択し、編集モードで開くには [読み取り/書き込みモード] を選択します。
  6. Microsoft Excel スプレッドシートを開くときにパスワードが必要な場合は、[パスワードが必要です] チェックボックスを選択します。
  7. Select any of the following tabs to create an Excel session:
    • Local session: Specify a session name that can be used only in the current bot.
    • Global session: Specify a session name that can be used across multiple bots, such as parent bots, child bots, and other child bots of the parent bots .
      You can also use the Global session option to loop through each row in an Excel advanced worksheet.
      注: You can open an Excel worksheet by using the Global session option and use it across multiple bots without having to share the session by using the Set session variable action.
      You can also close the session from the child bot when you are using the Global session option and sharing the session across child bots.
      重要: If you close the session from the child bot and run the parent bot, then in the parent bot, the actions that come after the child bot are not run, and the bot fails with an error because the session has already been closed from the child bot.
    • Variable: Specify a session variable that can be used to share that session with other child bots.
    注: When you use more than one workbook to automate an operation, you must use different session names for each workbook. If you want to use the same session name to automate all the workbooks, you must first close the session of one workbook before using the same session name for another workbook.
  8. [セッション名] フィールドにセッションの名前を入力します。
  9. [保存] をクリックします。