I need to convert a cell with a double to a precentage. I used a macro in excel and it says:
Range(\"B5\").Select
Selection.Style = \"Percent\"
Try using Excel.Range.Style.NumberFormat.Format="#,###.00%"
Try using Excel.Range.NumberFormat
instead of Excel.Range.Style
Try this procentRange.NumberFormatLocal = "0.00%"
I've found the anwser with help of JN Web
Excel.Range procentRange = xlWorksheet.get_Range("A1","A1");
procentRange.NumberFormat = "###,##%";
So first you need a range, then set the decimals and add "%" -> automatically a 100 time multiplication