- Documentation
- Activities
- Excel
- Format Cells
Set fill, font, borders, alignment, number format and size on a range. Every field is optional and only the ones filled in are changed
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Excel Instance excelInstance | variable | Required | — | — |
Sheet Name sheetName | string | Optional | — | Leave empty for the first sheet |
Range range | string | Optional | — | A1:D20, a single cell, whole columns A:C, or empty for everything on the sheet |
Fill Colour fillColor | string | Optional | — | Hex such as #4472C4, or a name such as light green |
Font Colour fontColor | string | Optional | — | — |
Font fontName | string | Optional | — | Calibri, Arial, Georgia |
Font Size fontSize | number | Optional | — | — |
Bold bold | boolean | Optional | — | — |
Italic italic | boolean | Optional | — | — |
Underline underline | boolean | Optional | — | — |
Horizontal Alignment horizontalAlignment | enum | Optional | — | —leftcenterrightjustifyfill |
Vertical Alignment verticalAlignment | enum | Optional | — | —topmiddlebottom |
Wrap Text wrapText | boolean | Optional | — | — |
Indent indent | number | Optional | — | — |
Text Rotation textRotation | number | Optional | — | Degrees, -90 to 90 |
Number Format numberFormat | enum | Optional | — | —generalnumbernumber2thousandscurrencypercentpercent2datedatetimetimetextcustom |
Currency Symbol currencySymbol | string | Optional | $ | — Shown when numberFormat = currency |
Custom Format Code customNumberFormat | string | Optional | — | Such as #,##0.00 or dd-mmm-yyyy Shown when numberFormat = custom |
Border Style borderStyle | enum | Optional | — | —nonethinmediumthickdotteddasheddouble |
Border Colour borderColor | string | Optional | — | — Shown when borderStyle = thin / medium / thick / dotted / dashed / double |
Border Edges borderEdges | enum | Optional | all | —alloutlinetopbottomleftrightShown when borderStyle = none / thin / medium / thick / dotted / dashed / double |
Column Width columnWidth | number | Optional | — | — |
Row Height rowHeight | number | Optional | — | — |
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Apply Conditional Formatting
Add a rule that keeps highlighting cells as the data changes, rather than colouring the ones that match today
Autofit Rows and Columns
Widen columns to fit their contents. Widths are estimated from the longest value rather than measured, and rows are handed back to Excel to fit when the file opens
Format as Table
Turn a range into a real Excel table with banded rows, filter arrows and a name formulas can use
Merge Cells
Join a range into one cell, or split a merged one back up. Safe to re-run
Add Row to Sheet
Add a row of values to the end of a sheet
Append Data to Sheet
Add many rows to the end of a sheet in one step. Use Add Row to Sheet for a single row