<< Return to Main Index

< Return to Class Index

CGXData::SetRangeName

virtual BOOL SetRangeName(LPCTSTR name, const CGXRange& rg, CObject* pUndoInfo = NULL);

name

Points to the string with the range name

rg

Specifies the range.

pUndoInfo

Optional pointer to internally generated undo info by a previous DeleteRangeName command.

Return Value

TRUE if operation was successful; FALSE otherwise.

Remarks

Adds a named ranges or replaces an existing named range with the new range settings (see DeleteRangeName).

Please note that the range object must not be a row, column or table range. Don't use SetRows(), SetCols() or SetTable() for specifying the range. Only plain cell ranges are possible.

Example:

         SetRangeName(_T("number"), CGXRange(6,1,10,4));

Note: CGXFormulaSheet is only provided with the professional edition of Objective Grid.

CGXData

Class Overview | Class Members