Read Rangeの2つの読み込み方法具体的に何が違う?

データテーブルを検索(lookup)アクティビティを、以下の2つのデータテーブルで試しました。

A. Excel配下のReadRangeで取得したデータテーブル
B. ワークブック配下のReadRangeで取得したデータテーブル

そして、ターゲット列に指定の値が存在しない場合に、Aで取得したデータテーブルだとエラーが発生し、Bで取得したデータテーブルだとエラーは発生せずnullが返されます。

ワークブック配下のものはPCにExcelがインストールされてないときに使うというのは聞いたことがありますが、具体的にどのような読み取りの違いがあるのでしょうか?

そして、Excel配下のアクティビティとワークブック配下のアクティビティでそれぞれどのようなメリット・デメリットがあるのでしょうか?

@n-shiumi

No differencies between Excel and Workbook activities. Both will function similar way only.

If Excel application was Installed in our machine then will use Excel activities else Workbook activities.

1 Like

Hi @n-shiumi

  1. To use “Excel Application Scope” , Excel should be Install on the system.
  2. To use Excel services even Excel is not installed then you can use "Workbook related separate activities.
  3. And the other things is with Excel Activities you will not be able to access the chart and diagram realted data with Excel Related activities, You will get an error.
    For more info:
    https://forum.uipath.com/t/excel-file-with-chart-sheet-as-first-sheet-exception/2187/4
  4. For Workbook Related Activity the Excel workbook file should be close at the time of robot run otherwise it will give error like it is being use by other process.
  5. One more thing Faced recently with Excel Application Scope , he was not able to access the password protected excel and same case was with me, a pop was again asking to enter the credential but with Workbook Activities it was working fine.
    For More Details: Excel Passwords

Regards,
Kommi Jeevan

1 Like

@lakshman
That is only similar, I think there is some technical difference.

@n-shiumi

経験則ですが、Excelのデータのみに着目したい場合はWorkbook activityを、特に気にしない or Excelの書式なども扱いたい場合はExcel application scopeを用いると良いと思います。(基本的にworkbook activityは書式などは加味されません。(下例))

例. 以下のようなExcel(D列に書式のみの列がある場合)を範囲指定なしで読み込むと
image

Excel application scope: D列まで読み込まれる
Workbook : C列まで読み込まれる

となります。その他細かい差異はあると思いますが、どちらを使っても困ることは少ないので、個人的には多機能なExcel application scope のアクティビティをおススメします。

後は、前に似た議論があったので置いておきます。

参考まで。

2 Likes

Thanks!!

D列まで読み込まれる…は知りませんでした…!!

ありがとうございます!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.