1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【BluePrism】Excelのシート名を変更する

Posted at

やりたいこと

Excelのシート名を変更。

Input

image.png

Output

特になし

オブジェクトフロー

image.png

コード


Dim ws As Object = GetWorksheet(Handle, Workbook, Target_Sheet_Name)

Try
	ws.Name = Rename_Sheet_Name
	Success = True

Catch e As Exception
	Success = False
	Message = e.Message
Finally
    ws = Nothing
End Try

注意

サンプルをExcel VBOにページ追加して使用してください。
Excel VBOを拡張する際は、既存のVBOを複製して別オブジェクトにすることを推奨します。
Excel VBOをコピーしてExcel VBO Extendedなどとして複製し、「シート名変更」をページ追加するイメージです。

また、インスタンス作成の際はExcel VBO ExtendedのCreate Instanceを使うことに注意してください。
既存のExcel VBOで生成されたhandleを使ってExcel VBO Extendedの処理をしようとするとエラーになります。

サンプル

https://github.com/falcslab/blueprism/tree/collection
BPA オブジェクト - シート名変更.xml

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?