activities
latest
false
UiPath logo, featuring letters U and I in white

Productivity Activities

Last updated Dec 6, 2024

Insert Sheet

UiPath.Excel.Activities.Business.InsertSheetX

Inserts a sheet in an Excel file. The activity can be used with an Excel file selected for a parent Use Excel File activity or with the Project Notebook.

Configuring the Activity

In the Body of the Activity
  • Create in workbook - Click Plus docs image on the right side of the field and then, from the menu, select the file where to insert the sheet. Alternatively, you can select Open in Advanced Editor and enter a VB expression.
  • Sheet name - Click Plus on the right side of the field, and then use one of the available options in the menu to indicate the sheet name:

    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, select a cell in an Excel file or a field from a selected Outlook email.
    • Use Saved Value - Select a value that you previously saved for later use in the project.
    • Text - Enter a name in the Text Builder.
    • Ask when run - Prompt for a name when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Reference new sheet as - Optionally, if you want to reference the sheet in other activities, click Plus on the right side of the field, and then select Save for Later Use.

    You can reference the sheet in Excel activities fields that accept a sheet selection using the name of the saved value. This can be useful when you are working with an Excel file that does not exist at design time and you want to use the inserted sheet in other activities. In addition, you can also use the saved value to enter the sheet name in any activity field that accepts text input.

Properties Panel

Common

  • DisplayName - The name displayed for the activity in the Designer panel.

Input

  • See the options in the body of the activity.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Output

  • See Reference new sheet as in the body of the activity.
  • Configuring the Activity

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.