excel format cell as kilowatts code example
Example: excel format cell as kilowatts
'Excel custom Number Format for kilowatts:
[>=1000]#,##0.0" kW";[<1000]0.0" kW"
'To use this number format from VBA:
[A1].NumberFormat = "[>=1000]#,##0.0"" kW"";[<1000]0.0"" kW"""