Excel c# convert cell to percentage
Posted
by rubentjeuh
on Stack Overflow
See other posts from Stack Overflow
or by rubentjeuh
Published on 2010-06-09T10:36:25Z
Indexed on
2010/06/09
12:32 UTC
Read the original article
Hit count: 190
Hello. 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"
When I do this in c#, it doesn't work:
Excel.Range procentRange = xlWorksheet.get_Range("A1","A1");
procentRange.Style = "Percent";
Anybody knows how to do this?
© Stack Overflow or respective owner