這兩個函數創建 XLOPER/XLOPER12 ,包含了當前激活工作表上的單元格引用。
LPXLOPER TempActiveCell(WORD row, BYTE col);
LPXLOPER12 TempActiveCell12(RW row, COL co);
參數
row
引用行號,行號參數是從0開始的,因此 第一行就是0.
col
引用列號,從0開始。
返回值
返回 xltypeRef 外部引
實例
The following example uses TempActiveCell12 to display the contents of B94 on the active sheet.
\SAMPLES\EXAMPLE\EXAMPLE.C
short WINAPI TempActiveCellExample(void)
{Excel12f(xlcAlert, 0, 1, TempActiveCell12(93,1));return 1;
}