TempActiveCell

Framework library function. This function creates a temporary XLOPER containing a reference to a single cell on the active sheet.

Returns a reference LPXLOPER (xltypeRef) containing the reference of the cell passed in.

Syntax

TempActiveCell(WORD rw, BYTE col);

rw (WORD)

The row of the cell. All arguments are zero-based.

col (BYTE)

The column of the cell.

Example

This example uses the TempActiveCell function to display the contents of cell B121 on the active sheet.

\SAMPLES\EXAMPLE\EXAMPLE.C

short WINAPI TempActiveCellExample(void)
{
    Excel4(xlcAlert, 0, 1, TempActiveCell(120,1));
    return 1;
}