apply_named_style
Apply a named built-in Excel style like 'Good' or 'Heading 1' to a target range in a worksheet, changing its formatting to match the style.
Instructions
Apply a named built-in Excel style to a range (e.g. 'Good', 'Heading 1').
Args: file_path: Workbook path. sheet_name: Worksheet name. range_str: Target range. style_name: Name of the named style to apply.
Returns: dict: Result metadata.
Notes: - Mutates formatting and depends on openpyxl named style availability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| range_str | Yes | ||
| sheet_name | Yes | ||
| style_name | Yes |