---
title: "excel:style — Style"
description: "iXML command excel:style: Style."
canonical_url: "https://www.zeyos.com/ixml/ref/excel-style"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/excel-style.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# excel:style — Style

EXCEL:STYLE applies style to a range of cells.

The given variable must be an array corresponding to the following structure (keys are case-insensitive):

				merge (range only)

				freeze (no range)

				heigth (no range)
				width (no range)

				collapseCol (no range)
				collapseRow (no range)

				outlineLevelCol (0-7) (no range)
				outlineLevelRow (0-7) (no range)

				font
					- name
					- bold
					- italic
					- superscript
					- subscript
					- underline: none, double, doubleAccounting, single, singleAccounting
					- strikethrough
					- color
						- rgb
						- argb
					- size

				alignment
					- horizontal: general, left, right, center, centerContinuous, justify, fill, distributed
					- verical: bottom, top, center, justify, distributed
					- textRotation
					- wrapText
					- shrinkToFit
					- indent
					- readOrder: 0 (context), 1 (ltr), 2 (rtl)

				borders
					- allBorders, left, right, top, bottom, diagonal, outline, inside, horizontal, vertical
						- borderStyle: none, dashDot, dashDotDot, dashed, dotted, double, hair, medium, mediumDashDot, mediumDashDotDot, mediumDashed, slantDashDot, thick, thin
						- color
							- rgb
							- argb
					- diagonalDirection: 0 (none), 1 (up), 2 (down), 3 (both)

				fill
					- fillType: none, solid, linear, path, darkDown, darkGray, darkGrid, darkHorizontal, darkTrellis, darkVertical, gray0625, gray125, lightDown, lightGray, lightGrid, lightHorizontal, lightTrellis, lightUp, lightVertical, mediumGray
					- rotation
					- startColor
						- rgb
						- argb
					- endColor
						- rgb
						- argb
					- color
						- rgb
						- argb

				numberFormat
					- formatCode

				protection
					- locked: inherit, protected, unprotected
					- hidden: inherit, protected, unprotected

				quotePrefix

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Variable name for associated style name and value pairs |

### Children
- (none)

### Parents
- excel:workbook

### Result
- (none documented)
