DLL
To format a percent cell
-
If you want to use the regional default character used to display the decimal character, call the SSSetTypePercent function.
If you want to format the cell in any of the following ways, call the SSSetTypePercentEx function.
- Display a leading zero in values between 1.0 and –1.0
- Specify a custom decimal character
- Specify the format of negative percent values
Set the parameters for the functions as follows: - Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_PERCENT.