XLL+ Class Library (6.3)

CXlRef::MoveBy

Moves a reference by the specified number of rows and columns

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 CXlRef by the offsets provided. Left and Right will each be moved by nCols; Top and Bottom will each be moved by nRows. (Height and Width will be unaffected.)

Requirements

Header: xllplus.h

See Also

CXlRef Class | CXlRef Methods