xSheet.Cells(27, 4 + DayCount).NumberFormat = "0.00%" xSheet.Cells(27, 4 + DayCount).value = CDec(xSheet.Cells(25, 4 + DayCount).value / xSheet.Cells(26, 4 + DayCount).value)
xSheet.Cells(27, 4 + DayCount).NumberFormat = "#.00%" xSheet.Cells(27, 4 + DayCount).value = CDec(xSheet.Cells(25, 4 + DayCount).value / xSheet.Cells(26, 4 + DayCount).value)
.NumberFormatLocal
.NumberFormat
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)