xlsx.format_cells
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.
| Code | Input | Output | Description |
result = xlsx.format_cells(wb, sheet, range, [bold=], [italic=], [size=], [font=], [color=], [background=], [number_format=], [align=]) | wb —not documented yetsheet —not documented yetrange —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 yetitalic optionalnot documented yetsize optionalnot documented yetfont optionalnot documented yetcolor optionalnot documented yetbackground optionalnot documented yetnumber_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.