Enters a formula in the range specified or in the current selection
static int FormulaFill( LPCTSTR formula_text, const CXlOper& reference = CXlOper::MissingArg() );
Formula_text is the text with which you want to fill the range.
Reference specifies where formula_text is entered.
Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.
See the Microsoft Excel on-line Help for full details about this function.