Example: Formula property

This example sets the formula of the range as " B7+C7".

  Range formulaRange = sheet.range("F4");
  formulaRange.setFormula("=B7+C7");  

Related information

Formula property