Code ที่ใช้เขียนสูตรลงในช่อง
- ORange.SetFormula("=String Value");
Example :
- //### Add Formula To Office Calc.
- oRange = oSheet.getCellByPosition(18, i);
- ORange.SetFormula(StrFmt("=+M%1*O%1", i+1));
- oRange = oSheet.getCellByPosition(19, i);
- ORange.SetFormula(StrFmt("=+M%1", i+2));
- oRange = oSheet.getCellByPosition(20, i);
- ORange.SetFormula(StrFmt("=+S%1-T%1", i+1));
- oRange = oSheet.getCellByPosition(21, i);
- ORange.SetFormula(StrFmt("=+U%1/S%1", i+1));
No comments:
Post a Comment