Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeExcelNumberFormatPreset

Module
PSWriteOffice
Inputs
None

Lists OfficeIMO Excel number format presets and their format codes.

Syntax

Get-OfficeExcelNumberFormatPreset
[-Culture <CultureInfo>]
[-Decimals <Int32>]
[<CommonParameters>]
#
Parameter set: Default

Examples

List number format presets

Get-OfficeExcelNumberFormatPreset

Shows the preset names usable with -ColumnFormat and -Style and the format codes they produce.

See formats for another culture

Get-OfficeExcelNumberFormatPreset -Decimals 1 -Culture de-DE

Shows the presets with one decimal place as they are written for German workbooks.

Parameters

-Culture CultureInfo optional
Culture name used for currency symbols, such as en-US or pl-PL.
-Decimals Int32 optional
Decimal places used for decimal, percent, currency, and scientific presets.

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.