Enters a formula in the active cell or in a reference

[C++]
**static int Formula(**
** const CXlOper& ***formula_text***,**
** const CXlOper& ***reference* **=** **CXlOper::MissingArg()**
**)****;
**

#### Parameters

*formula_text*-
Formula_text can be text, a number, a reference, or a formula in the form of
text, or a reference to a cell containing any of the above.

*reference*-
Reference specifies where formula_text is to be entered.

#### Return value

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.

#### Remarks

See the Microsoft Excel on-line Help for full details about
this function.

#### Requirements

**Header:** xlfuncs.h

#### See Also

CXlMacros Class
| CXlMacros Methods