Excelのシートを選択したい(前面化させたい)

フォルダ内にある複数のExcelファイルを1つずつ起動し、Ctrl+Pで印刷する処理を作成しています。
その中で、特定のタイトルのファイルのみ複数シートの中から「Sheet1」を選択して印刷する必要があります。
Excelシートのアクティブ化のみ出来ればよいのですが、どのアクティビティを使用すればよいのでしょうか。

追記:できればシート名を指定して選択したいです。「●●」を含むシートを前面化する

@m-takeda1,

You can use Use Application/Browser activity which will let you select the desired excel file.

Thanks,
Ashok :slight_smile:

ありがとうございます。
「アプリケーション/ブラウザの使用」アクティビティを試してみます

Hi @m-takeda1

You have to use the Modern Excel and Ui activities to achieve the flow.

Here I am giving the outline process steps for your understnading,
→ Use the For each file in folder activity to iterate the each file in a folder. Output-CurrentFile
→ Inside for each insert the Excel Process scope activity.
→ Inside of it Insert the Use excel file activity, and pass the CurrentFile.toString in Excel file field.
→ Inside Use excel file activity insert the Click activity and hit on indicate it will open the excel file and indicate on sheet name.
→ Make the selectors dynamic to the click activity to click everytime on Sheet1.
→ After click activity insert the keyboard shortcuts activity and give the Ctrl+P to open the Printer window.
→ Use the Use application\browser activity and indicate the Printer window.
→ Open the properties of Use application\browser activity, select the never option for Open dropdown, select the Ifopenedbybrowser option for Close window.
→ Inside Use application\browser activity insert the ui activities to type the name of the file and to save the file.

Hope it helps!!

1 Like

シート選択アクティビティや設定方法があるわけではなく、クリックでシート選択するのですね

解決法が想像とは違いましたがこの方法で実現できました!
ありがとうございます!

1 Like

こんにちは

既に解決済みになっていますが...
どのようにエクセルファイルを開いていますか?

エクセルファイルを使用アクティビティを使ているのであれば、単純にセル読み込みアクティビティ等で別のシートのセル等を指定すれば、そのシートが選択状態になると思います。

image

1 Like

It’s my pleasure… @m-takeda1

Happy Automation!!

1 Like

この方法でも実現できました!
どちらかと言えばこの方法の方がイメージに近いです!
ありがとうございました

1 Like

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