XLL+ Class Library (6.3)

CXlControlFormulaEdit::SetFormula

Sets the control's value to the supplied formula

BOOL SetFormula(
   const char* pszFormula,
   BOOL bA1 = TRUE
);

Parameters

pszFormula

A pointer to a null-terminated string containing a formula.

bA1

Flag denoting whether the formula is in A1-style or R1C1 style. TRUE indicates that all references are in A1 form; FALSE that they are in R1C1 form.

Return Value

Returns TRUE if the call is successful; FALSE if the call fails. The call may fail if the formula is invalid.

Remarks

Sets the value displayed in the control.

Requirements

Header: xldialog.h

See Also

CXlControlFormulaEdit Class | CXlControlFormulaEdit Methods