XLL+ Class Library (6.3)

CXlOper::GetActiveCell

Creates a reference to the active cell

BOOL GetActiveCell( );

Return Value

Returns TRUE if the function was successful, FALSE if it failed. The function can fail if there is no current cell, or if the function cannot be run in Excel at this time.

Remarks

This function will create a reference to the currently active cell. The reference can then be used to access the contents of the cell, for example with the methods SetValue() and Coerce(). The function will fail if the address is not found.

This function can only be called from macro functions. It will always fail if called from worksheet functions.

Requirements

Header: xllplus.h

See Also

CXlOper Class | CXlOper Methods | CXlOper::SetActiveCell() | CXlOper::MakeRef()