activities
latest
false
UiPath logo, featuring letters U and I in white
Productivity Activities
Last updated Nov 15, 2024

Write Cell Workbook

UiPath.Excel.Activities.WriteCell

Description

Writes a value into a specified spreadsheet cell or a range. If the sheet does not exist, a new one is created with the SheetName value. If a value exists, it is overwritten. Changes are immediately saved.

Project compatibility

Windows - Legacy | Windows | Cross-platform

Properties

Common

  • DisplayName - The display name of the activity.
Destination
  • Cell - The cell that you want to write to. Only String variables and strings are supported.
  • SheetName - The name of the sheet in which the cell or range of cells that you want to write to is. By default, this is filled in with "Sheet1." Only String variables and strings are supported.
Input
  • Text - The value to be written to a cell or range. Only String variables and strings are supported.
  • Workbook path - The full path of the Excel spreadsheet that you want to use. If the Excel file to be used is located in the project folder, its relative path can be used. Only String variables and strings are supported.
    Note: Alternatively, instead of providing the path to the file, you can improve runtime performance when using multiple Workbook activities with the same file by connecting the project to the file from the Data Manager and then referencing it using the Workbook property.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Options
  • Password - The password of the Excel workbook, if necessary. Only String variables and strings are supported.
Use Workbook
  • Workbook - Select a Workbook resource from the Plus menu. Available if you added the Excel file as a resource by connecting to the workbook from the Data Manager.

    Adding a workbook resource and then referencing the resource in multiple Workbook activities ensures the file is not reloaded in the memory for each operation, which improves the runtime performance especially when working with large files. For more information, see Using the Data Manager.

Note: There is a known issue where, in an Excel document, when you attempt to write in an existing blank sheet, the action sometimes fails.
  • Description
  • Project compatibility
  • Properties

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.