XLL+ Class Library

CXlRef::MoveBy

Sets the values in the XLREF

[C++]
BOOL MoveBy(
   long nRows,
   long nCols
);

Parameters

nRows

Number of rows to move by (negative is up, positive is down).

nCols

Number of columns to move by (negative is left, positive is right).

Return value

Returns TRUE if the function was successful, FALSE if it failed. The function can fail if the resulting address would be out of range.

Remarks

This method moves the XLREF contained by the CXlRef by the offsets provided. Left and Right will each be moved by nCols; Top and Bottom will each be moved by nRows.

Requirements

Header: xllplus.h

See Also

CXlRef Class | CXlRef Methods