- Release Notes
- About the Excel Activities Package
- Project Compatibility
- Project Settings
- Use Excel File
- Append Range
- Auto Fill
- Autofit Range
- Change Pivot Data Source
- Clear Sheet/Range/Table
- Copy/Paste Range
- Create Pivot Table
- Delete Column
- Delete Rows
- Delete Sheet
- Duplicate Sheet
- Export to CSV
- Fill Range
- Filter
- Filter Pivot Table
- Find First/Last Data Row
- Find/Replace Value
- For Each Excel Row
- For Each Excel Sheet
- Format As Table
- Format Cells
- Get Excel Chart
- Insert Column
- Insert Chart
- Insert Rows
- Insert Sheet
- Lookup
- Match Function
- Protect Sheet
- Read Cell Formula
- Read Cell Value
- Read Range
- Refresh Excel Data Connections
- Refresh Pivot Table
- Remove Duplicates
- Rename Sheet
- Run Spreadsheet Macro
- Save Excel File
- Save Excel File As
- Save Excel File As PDF
- Sort Range
- Text to Columns
- Unprotect Sheet
- Update Excel Chart
- VLookup
- Write Cell
- Write DataTable to Excel
- Get Cell Color
- Invoke VBA
- Excel Application Scope
- Append To CSV
- Read CSV
- Write CSV
- Delete Column
- Filter Table
- Get Table Range
- Insert Column
- Sort Table
- Append Range
- Close Workbook
- Get Cell Color
- Read Cell
- Read Cell Formula
- Read Column
- Read Range
- Read Row
- Select Range
- Set Range Color
- Write Cell
- Write Range
- Save Workbook
- Create Table
- Get Workbook Sheet
- Get Workbook Sheets
- Refresh Pivot Table
- Create Pivot Table
- Get Selected Range
- Copy Sheet
- Delete Range
- Auto Fill Range
- Copy Paste Range
- Execute Macro
- Insert/Delete Columns
- Insert/Delete Rows
- Invoke VBA
- LookUp Range
- Remove Duplicates Range
- Excel Process Scope
- Manage CSV Files
- Filter CSV Files
- Verify CSV Files
- Table Functions
- Manage Multiple Excel Files
- Interpret Excel Results
- Manage Pivot Tables
- Manage Range Selection
- Read From Excel Files
- Manage Databases in Excel
- Compare CSV Files
- Compare Numeric Values
- Sort Data in Excel Files
- Filter and Delete Rows in Excel Files
- Manipulate Range Selections
- Verify Excel Workbook Data
- Read, Write, and Append Data in Excel
- Release notes
- About the Google Workspace activities package
- Project compatibility
- GSuite Application Scope
- Add Attendee
- Create Event
- Delete Event
- Modify Event
- Search Events
- Use Google Drive
- Share File
- Delete File Permission
- Get File Permissions
- Update File Permission
- Copy File
- Create Folder
- Delete File
- Download File
- Find Files and Folders
- Get File Info
- Move File
- Upload File
- Create Document
- Create New Spreadsheet
- Get Mail Messages
- Send Mail Messages
- Change Labels
- Use Google Spreadsheet
- Add Delete Columns
- Add Delete Rows
- Auto Fill Range
- Add New Sheet
- Append Row
- Batch Spreadsheet Updates
- Copy Sheet
- Copy Paste Range
- Delete Range
- Delete Sheet
- Get Cell Color
- Get Sheets
- Read Cell
- Read Column
- Read Range
- Read Row
- Rename Sheet
- Write Cell
- Write Range
- Clear Range
- Download Spreadsheet
- Use Google Document
- Batch Document Updates
- Get Document
- Get Text Index
- Insert Text
- Replace Text
- Read All Text
- Create Script Project
- Get Project Content
- Upload Script File
- Create Deployment
- Run Script
- Release notes
- About the Microsoft 365 activities package
- Project compatibility
- Merge multiple sheets into a new summary Excel sheet
- Automatically accept calendar invites from your manager
- Move files to dedicated folders by type
- Verify if new employment documents (I9 and ID) match
- Add new customers to a SharePoint List
- Delete SharePoint List items newer than yesterday
- Notify me on Slack when an important Outlook Email is received
- Include creation date in new OneDrive file names
- Notify me by email when a new file is created
- Microsoft Office 365 Scope
- Add Sheet
- Append Range
- Clear Range
- Copy Range
- Copy Sheet
- Create Workbook
- Delete Range
- Delete Sheet
- Get Cell Color
- Get Sheets
- Read Cell
- Read Column
- Read Range
- Read Row
- Rename Sheet
- Write Cell
- Write Range
- Set Range Color
- Create Table
- Get Table Range
- Insert Column
- Delete Column
- Insert Rows
- Delete Rows
- VLookup Range
- Use OneDrive & SharePoint
- Copy File/Folder
- Create Folder
- Delete File/Folder
- Download File
- Export File as PDF
- Find Files And Folders
- Get File/Folder
- Move File/Folder
- Upload File
- Share File/Folder
- For Each File/Folder
- Forward Mail
- Get Mail
- Move Mail
- Send Mail
- Reply to Mail
- Delete Mail
- Set Mail Categories
- Add Attachment
- Add Attendee
- Add Location
- Create Event
- Delete Event
- Find Meeting Times
- Get Calendars
- Modify Event
- RSVP
- Search Events
- Create Group
- Delete Group
- Get Group
- List Groups
- Create Bucket
- Delete Bucket
- List Buckets
- List Bucket Tasks
- Create Plan
- Get Plan
- List Plans
- Create Task
- Delete Task
- Get Task
- List Tasks
- Update Task
- For Each List
- Get List Info
- For Each List Item
- Delete List Item
- Add List Items
- Update List Item
- Get List Items
Write Range
UiPath.MicrosoftOffice365.Activities.Excel.WriteRangeConnections
Description
Writes a DataTable variable to a specified Excel workbook cell range.
Scopes
This activity requires the following scopes:
- Files.ReadWrite
- Files.ReadWrite.All
- Sites.ReadWrite.All
Project compatibility
Windows | Cross-platform
Configuration
- Microsoft OneDrive & SharePoint connection - The connection for the Microsoft 365 account to use in the activity.
- Workbook - Select the Excel file to write in. You can also use a variable and
define a workbook template. With a template, the activity can generate the
ranges dropdown list. The method to specify the folder to be retrieved:
Browse, Enter Id, Enter Url. You can also select a
workbook template.
- Workbook sample - Select a file with the same ranges as the
variable file. The field is visible after clicking Use workbook
template. Browse the OneDrive folders and select a workbook. In
Studio Desktop, the option is available from the Plus
button menu next to Range. This field accepts
IResource
input. To learn more, see Working with templates. - Browse option - Click the Folder
icon to browse the OneDrive or SharePoint folders and select a spreadsheet. This option accepts input as
IResource
.-
Use the Plus
button menu to use a variable or select the Reload Browser option if you've modified your folders and need to retrieve the latest data.
-
- Enter Id option:
- Workbook Id - The ID of the workbook of interest. This property supports
String
variables and string formatted values. - SharePoint site address - The URL of the SharePoint site that contains the file or folder. This property supports
String
variables and string formatted values. Open your SharePoint site in a browser and copy its URL, e.g.,https://yourcompany.sharepoint.com/sites/ProductOfficial
. - SharePoint document library - The document library within the indicated SharePoint site that contains the file or folder. This property supports
String
variables and string formatted values. Open the Documents tab in your SharePoint site and copy the URL, e.g.,https://yourcompany.sharepoint.com/sites/ProductOfficial/Shared%20Documents/Forms/AllItems.aspx
.
- Workbook Id - The ID of the workbook of interest. This property supports
- Enter Url option:
- Workbook Url - The URL of the workbook of interest. This property supports
String
variables and string formatted values. Retrieve the URL by opening the file in a browser.
- Workbook Url - The URL of the workbook of interest. This property supports
- Workbook sample - Select a file with the same ranges as the
variable file. The field is visible after clicking Use workbook
template. Browse the OneDrive folders and select a workbook. In
Studio Desktop, the option is available from the Plus
-
Range - Indicate in which Excel Range to write or append the data. You can add a custom range, such as
Sheet1!C5:F10
, or a named range name, e.g.Clients
. This field is prepopulated with information retrieved from the selected spreadsheet or spreadsheet sample. This property supportsString
variables and string formatted values.-
Select the Update Ranges option if you've modified your sheets and need to retrieve the latest data.
-
-
Include headers - This property supports Boolean values. Set to True to also include the DataTable headers into the workbook.
- How to write - Specifies
how to add the data to the specified range. The available options are:
- Overwrite - Overwrite any previous data that exists.
- Append - Write the data in the first empty row found.
- Append Right - Write the data in the first empty column found. See the Appending section below for more information.
- Insert - Insert a row.
-
What to write - The
DataTable
data that will be written in the workbook. This field supportsDataTable
variables. For example, you can use the output variable of a Read range activity.
Sheet%Test
is a valid input, but Sheet%44
isn’t (%44
is transformed into D
).
Appending
Appending data does not currently support named ranges.
Append (to the bottom) | Append Right | |
Plain range (A1 notation) |
Write the range to the first empty row found in the targeted range. It creates the number of rows necessary and fills in the range with the input range. If there isn't an empty row in the range, append the range to the bottom by inserting the necessary number of rows and adding the input range. |
Write the range to the first empty column found in the targeted range. It creates the number of columns necessary and fills in the range with the input range. If there isn't an empty column in the range, append the range to the right by inserting the necessary number of columns and adding the input range. |
Named range |
Write the range to the first empty row found in the targeted range. It creates the number of rows necessary and fills in the range with the input range. If there isn't an empty row in the range, append the range to the bottom by inserting the necessary number of rows and adding the input range. |
Write the range to the first empty row found in the targeted range. It creates the number of rows necessary and fills in the range with the input range. If there isn't an empty row in the range, append the range to the bottom by inserting the necessary number of rows and adding the input range. |
Sheets |
Write the range to the first empty row found in the targeted sheet. It creates the number of rows necessary and fills in the range with the input range. If there isn't an empty row in the range, append the range to the bottom by inserting the necessary number of rows and adding the input range. |
Write the range to the first empty column found in the targeted sheet. It creates the number of columns necessary and fills in the range with the input range. If there isn't an empty column in the range, append the range to the right by inserting the necessary number of columns and adding the input range. |
Known limitations for requests
Be aware of request/response limits when working with ranges. The limit stands at 4 MB, e.g., on average 10,000 cells with 20 characters each for Read requests, 4,000 cells with 20 characters each for Write requests. For more information, see Excel specifications and limits.