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

Productivity activities

Last updated Mar 13, 2026

ReadRange

Reads and saves the information from a specified Excel workbook range.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

Assembly: UiPath.MicrosoftOffice365.Activities.Api (in UiPath.MicrosoftOffice365.Activities.Api.dll)

Syntax

DataTable ReadRange(
	IWorkbook workbook,
	IRange range,
	bool hasHeaders = true,
	CellReadMode cellReadMode = CellReadMode.Values
)
DataTable ReadRange(
	IWorkbook workbook,
	IRange range,
	bool hasHeaders = true,
	CellReadMode cellReadMode = CellReadMode.Values
)

Parameters

workbook IWorkbook : The Excel workbook to use.

range IRange : The range to read from.

hasHeaders Boolean (Optional) : Set to True if the first row in the range represents a header row.

cellReadMode CellReadMode (Optional) : The type of information that is read from the cell range.

Return value

DataTable - The information read from the range.

  • Syntax
  • Parameters
  • Return value

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated