# Get-OfficeExcelTableStyle

Lists built-in Excel table styles and compatibility recommendations.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`None`

**Source**

[GetOfficeExcelTableStyleCommand.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Excel/GetOfficeExcelTableStyleCommand.cs#L18) 

Lists built-in Excel table styles and compatibility recommendations.

## Syntax

```
Get-OfficeExcelTableStyle
[-Profile <Desktop|CrossHost>]
[-RecommendedOnly]
[<CommonParameters>]
```

[#](#method-get-officeexceltablestyle-exceltablestylecompatibilityprofile-switchparameter)

Parameter set: `Default`

## Examples

### List the recommended table styles

```powershell
Get-OfficeExcelTableStyle -RecommendedOnly
```

Shows the built-in table styles that render well in every supported host.

### Pick styles that render outside desktop Excel

```powershell
Get-OfficeExcelTableStyle -Profile CrossHost -RecommendedOnly | Format-Table
```

Lists the styles recommended for workbooks also opened in web and mobile spreadsheet apps.

## Parameters

**-Profile ExcelTableStyleCompatibilityProfile optional**

Compatibility profile used to evaluate table styles.

Possible values: `Desktop`, `CrossHost`

**-RecommendedOnly SwitchParameter optional**

Return only styles recommended for the selected profile.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:9357BCF8FD8B5A0E42943843B8D9DC2DB9A2117A1601B8500BE1296F0F37A309 -->
