for (int k = 0; k < 6; k++)
{
string FormlaString = "INDEX(FREQUENCY(R4C" + (k * 2 + 2).ToString() + ":R1000C" + (k * 2 + 2).ToString() + ",R4C16" + ":R" + (LinRow + 2).ToString() + "C16" + ")," + (i + 2).ToString() + ")";
sv_洞室表.Cells[i + 3, k + 18].Formula = FormlaString;
}
以上是赋公式的代码,能不能改为将index(...)计算的结果填入sv_洞室表.Cells[i + 3, k + 18]单元格中?这个我不会写了 |