# WriteCell

> Writes information in the indicated Excel workbook cell.

Writes information in the indicated Excel workbook cell.

**Namespace:** UiPath.MicrosoftOffice365.Activities.Api

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

## Syntax

```
void WriteCell(
	IWorkbook workbook,
	IRange range,
	string cell,
	Object value
)
```

## Parameters

**`workbook`** **[IWorkbook](https://docs.uipath.com/activities/other/latest/productivity/uipath-microsoftoffice365-activities-api-iworkbook)** : The Excel workbook to use.

**`range`** **[IRange](https://docs.uipath.com/activities/other/latest/productivity/uipath-microsoftoffice365-activities-api-irange)** : The sheet or named range where the cell is located.

**`cell`** **[String](https://learn.microsoft.com/dotnet/api/system.string)** : The cell into which to write, e.g., A2.

**`value`** **[Object](https://learn.microsoft.com/en-gb/dotnet/api/system.object?view=net-8.0)** : The data written in the indicated cell.
