n-shiumi
(Naoki Oshiumi)
December 12, 2019, 4:14am
1
データテーブルを検索(lookup)アクティビティを、以下の2つのデータテーブルで試しました。
A. Excel配下のReadRangeで取得したデータテーブル
B. ワークブック配下のReadRangeで取得したデータテーブル
そして、ターゲット列に指定の値が存在しない場合に、Aで取得したデータテーブルだとエラーが発生し、Bで取得したデータテーブルだとエラーは発生せずnullが返されます。
ワークブック配下のものはPCにExcelがインストールされてないときに使うというのは聞いたことがありますが、具体的にどのような読み取りの違いがあるのでしょうか?
そして、Excel配下のアクティビティとワークブック配下のアクティビティでそれぞれどのようなメリット・デメリットがあるのでしょうか?
lakshman
(Ganta lakshman)
December 12, 2019, 4:50am
2
@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
Jumbo
(Jumbo Suzuki)
December 12, 2019, 5:09am
4
@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列に書式のみの列がある場合)を範囲指定なしで読み込むと
Excel application scope: D列まで読み込まれる
Workbook : C列まで読み込まれる
となります。その他細かい差異はあると思いますが、どちらを使っても困ることは少ないので、個人的には多機能なExcel application scope のアクティビティをおススメします。
後は、前に似た議論があったので置いておきます。
Excel activities can only be used within the Excel Application Scope. This effectively opens Excel albeit quickly. Some of the activities like executing macros will only run if within the application scope.
Workbook activities do not require Excel to be open so if for example, all you need to do is read in a range then you can use this.
Generally I would advise using Excel Application Scope as it doesn’t take long to run and down the line you may want to perform more actions with your Excel fi…
参考まで。
2 Likes
system
(system)
Closed
December 15, 2019, 5:21am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.