Write Excel Cell
Write Excel Cell
Section titled “Write Excel Cell”Type: excel-write-cell · Package: Excel Activities v1.0.0
Type a value into a specific cell. Use it to place a specific data: a total in B10, a process date in A1, a status in a fixed cell. Create the file if it does not exist.
How it works
Section titled “How it works”Write the value in the indicated cell on the sheet. Accepts session or path — see the two modes.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
cell | expression | Cell address, e.g. "B3". |
value | expression | The value or expression to write. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | expression | Excel Open session (instead of path). |
path | expression | Path to .xlsx (created if it does not exist; required if there is no session). |
sheet | expression | Name or index of the sheet. By default, the first /"Sheet1". |
Example
Section titled “Example”Write Excel Cell path = = "C:/salida/control.xlsx" sheet = "Log" cell = "A1" value = "Procesado"Write Excel Cell path = = "C:/salida/control.xlsx" sheet = "Log" cell = "B1" value = = now().ToString("yyyy-MM-dd HH:mm")Related activities
Section titled “Related activities”- Read Excel Cell — read a cell.
- Write Excel Range — write multiple cells at once.