XLL+ Class Library

CXlMacros::GetCell

Returns information about the cell, range of cells, command on a menu, tool on a toolbar, or object that called the macro that is currently running

[C++]
static int GetCell(
   CXlOper& xloData,
   short int type_num,
   const CXlOper& reference = CXlOper::MissingArg()
);

Parameters

xloData

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

type_num

Type_num is a number that specifies what type of cell information you want.

reference

Reference is a cell or a range of cells from which you want information. If it is omitted, then the active cell will be used.

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