# Write Cell

> `UiPath.Excel.Activities.Business.WriteCellX`

`UiPath.Excel.Activities.Business.WriteCellX`

Enters a text or a formula in a cell. The activity can be used with an Excel file selected for a parent [Use Excel File](https://docs.uipath.com/activities/other/latest/productivity/excel-application-card) activity or with the Project Notebook.

To learn how to use this activity, see:

* [Tutorial: Saving, Renaming, and Moving Attachments](https://docs.uipath.com/studiox/docs/tutorial-saving-renaming-and-moving-attachments).
* [Tutorial: Comparing Excel Files and Emailing Reconciliation Errors](https://docs.uipath.com/studiox/docs/tutorial-comparing-excel-files-and-emailing-reconciliation-errors).

## Configuring the activity

#### In the body of the activity

* **What to write** - Select **Plus** on the right side of the field and then, from the menu, select what to enter in the cell:

  + Data from the Project Notebook, a parent Excel file or Outlook account. For example, select a cell in an Excel file to copy the value from that cell, or a field from the email selected in Outlook when the project is executed to copy its contents.
  + **Use Saved Value** - Select a value that you previously saved for later use in the project.
  + **Text** - Enter a text in the Text Builder. If you enter an Excel formula, for example `=A2+B2`, the formula is entered in the cell.
  + **Number** - Enter a numeric value.
  + **Ask when run** - Prompt for a value when the project is executed.
  + **Open in Advanced Editor** - Enter a VB expression.
* **Where to write** - Select **Plus** on the right side of the field and then, from the menu, select an Excel file and a named cell where to enter the data, or select **Indicate in Excel** to indicate directly from the file. Alternatively, you can select **Custom Input** to enter a cell address manually, or **Open in Advanced Editor** to enter a VB expression.
* **Auto increment row** - Select this option if the activity is inside a For Each and you want relative cell references (references without $) to increase the row number with each iteration. This works if the activity is added inside one of the following activities: [Excel For Each Row](https://docs.uipath.com/activities/other/latest/productivity/excel-for-each-row), [For Each Email](https://docs.uipath.com/activities/other/latest/user-guide/for-each-email-x), [For Each File in Folder](https://docs.uipath.com/activities/other/latest/user-guide/for-each-file-x), or [Repeat Number of Times](https://docs.uipath.com/activities/other/latest/user-guide/repeat-number-of-times-x).

#### Properties panel

**Common**

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

**Destination**

* See **Where to write** in the body of the activity.

**Input**

* See **What to write** in the body of the activity.

**Misc**

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

**Options**

* See **Auto increment row** in the body of the activity.
