get_cell_styles
Retrieve formatting styles from Excel cells to identify headers, subtotals, and data roles. Filter by specific properties such as bold, font size, or background color.
Instructions
Get formatting/style info for cells in a range. Returns only cells with non-default styles. Useful for identifying headers, subtotals, and data roles by visual formatting.
Args: cell_range: Range like 'A1:D10'. workbook: Workbook name or path. Defaults to active workbook. sheet: Sheet name. Defaults to active sheet. properties: Filter specific properties (bold, italic, underline, font_name, font_size, font_color, bg_color, number_format, alignment, border).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cell_range | Yes | ||
| workbook | No | ||
| sheet | No | ||
| properties | No |