set_custom method

set_custom

Sets the Custom number format string of a cell.

def set_custom(self, custom, builtin_preference):
    ...
ParameterTypeDescription
customstrCustom number format string, should be InvariantCulture pattern.
builtin_preferenceboolIf given Custom number format string matches one of the built-in number formats
corresponding to current regional settings, whether set the number format as built-in instead of Custom.

See Also