Framework library function. This function creates a temporary XLOPER containing a rectangular reference to the active sheet.
Returns a reference LPXLOPER (xltypeRef) containing the reference passed in.
TempActiveRef(WORD rwFirst, WORD rwLast, BYTE colFirst, BYTE colLast);
rwFirst (WORD)
The starting row of the reference. All arguments are zero-based.
rwLast (WORD)
The ending row of the reference.
colFirst (BYTE)
The starting column number of the reference.
colLast (BYTE)
The ending column number of the reference.
This example uses the TempActiveRef function to select cells A112:C117.
\SAMPLES\EXAMPLE\EXAMPLE.C
short WINAPI TempActiveRefExample(void)
{
Excel4(xlcSelect, 0, 1, TempActiveRef(111, 116, 0, 2));
return 1;
}