XLL+ Class Library

CXlMacros::RelRef

Returns the reference of a cell or cells relative to the upper-left cell of rel_to_ref

[C++]
static int RelRef(
   CXlOper& xloRef,
   const CXlOper& reference,
   const CXlOper& rel_to_ref
);

Parameters

xloRef

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

reference

Reference is the cell or cells to which you want to create a relative reference.

rel_to_ref

Rel_to_ref is the cell from which you want to create the relative reference.

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