XLL+ Class Library

CXlMacros::GetFormula

Returns the contents of a cell as they would appear in the formula bar

[C++]
static int GetFormula(
   CString& strformula,
   const CXlOper& reference
);

Parameters

strformula

A reference to a string that will contain the desired data if the function succeeds.

reference

Reference is a cell or range of cells on a sheet or macro sheet.

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