Qu

xlsx.format_cells

Builtin index · File I/O

result = xlsx.format_cells(wb, sheet, range, [bold=], [italic=], [size=], [font=], [color=], [background=], [number_format=], [align=])

Input: wb, sheet, range, bold, italic, size, font, color, background, number_format, align · Output: result

What it is

Formats every cell of range: colours as #rrggbb, number_format in Excel's own codes (0.00, 0.00E+00, yyyy-mm-dd), align left/center/right.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
result = xlsx.format_cells(wb, sheet, range, [bold=], [italic=], [size=], [font=], [color=], [background=], [number_format=], [align=])
wb —not documented yet
sheet —not documented yet
range —Formats every cell of range: colours as #rrggbb, number_format in Excel's own codes (0.00, 0.00E+00, yyyy-mm-dd), align left/center/right.
bold optionalnot documented yet
italic optionalnot documented yet
size optionalnot documented yet
font optionalnot documented yet
color optionalnot documented yet
background optionalnot documented yet
number_format optionalFormats every cell of range: colours as #rrggbb, number_format in Excel's own codes (0.00, 0.00E+00, yyyy-mm-dd), align left/center/right.
align optionalFormats every cell of range: colours as #rrggbb, number_format in Excel's own codes (0.00, 0.00E+00, yyyy-mm-dd), align left/center/right.
result number
Returns the number of cells formatted.

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.