Set Cell Format

Apply number format / bold / fill to a cell.

ExcelExcelSetFormatCell

What it does

Apply number format / bold / fill to a cell.

Parameters

ParameterTypeRequiredDefaultDescription
Excel instancevariable
RequiredexcelName that identifies this open workbook.
Sheet (blank = active)string
OptionalWorksheet name; blank uses the active sheet.
Supports variables
Reference bydropdown
A1 (Cell) · Row & Column
OptionalA1 (Cell)
Cell (A1) — for A1 modestring
Optional
Example: A1
Supports variables
Row (1-based) — for Row & Column modenumber
Optional
Example: 1
Supports variables
Column (1-based) — for Row & Column modenumber
Optional
Example: 1
Supports variables
Number formatstring
Optionale.g. 0.00 or #,##0 or yyyy-mm-dd.
Example: 0.00
Supports variables
Bolddropdown
No · Yes
OptionalNo
Background color (hex)string
Optional6-digit hex, e.g. FFFF00.
Example: FFFF00
Supports variables

More Excel commands

Ready to automate your busywork?

Start your free 10-day trial today. No credit card, no commitment.