Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeExcelTableStyle

Module
PSWriteOffice
Inputs
None

Lists built-in Excel table styles and compatibility recommendations.

Syntax

Get-OfficeExcelTableStyle
[-Profile <Desktop|CrossHost>]
[-RecommendedOnly]
[<CommonParameters>]
#
Parameter set: Default

Examples

List the recommended table styles

Get-OfficeExcelTableStyle -RecommendedOnly

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

Pick styles that render outside desktop Excel

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.