XLL+ Class Library (7.0)

CXllApp::GetCallerDims

Get the dimensions of the range from which this add-in function was called

static bool GetCallerDims(
   size_t& nRows,
   size_t& nColumns
);
static bool GetCallerDims(
   RW12& nRows,
   COL12& nColumns
);
static BOOL GetCallerDims(
   USHORT& usRows,
   USHORT& usColumns
); [Deprecated]

Parameters

nRows

If the function succeeds this will be set to the number of rows in the range from which this function was called.

nColumns

If the function succeeds this will be set to the number of columns in the range from which this function was called.

usRows

If the function succeeds this will be set to the number of rows in the range from which this function was called. The function will fail if there are more rows in the range can be held in a USHORT variable.

usColumns

If the function succeeds this will be set to the number of columns in the range from which this function was called.

Return Value

Returns TRUE if the function was called from a cell range, and sets the values of usRows and usColumns. Returns FALSE if the function was called from a macro.

Example

CXlOper::GetCallerDims() Example

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | CXlOper::GetCaller | CXlOper::GetDims