TempMissing

Framework library function. This function creates a temporary XLOPER containing a "missing" argument. It is used to simulate a missing argument when calling Microsoft Excel.

Returns a missing LPXLOPER (xltypeMissing).

Syntax

TempMissing(void);

This function has no arguments.

Example

This example uses the TempMissing function to provide a missing argument to xlcWorkspace, which causes Microsoft Excel to switch to the next sheet.

\SAMPLES\EXAMPLE\EXAMPLE.C

short WINAPI TempMissingExample(void)
{
    XLOPER xBool;

    xBool.xltype = xltypeBool;
    xBool.val.bool = 0;
    Excel(xlcWorkspace, 0, 4, TempMissing(),
        TempMissing(),TempMissing(),
        (LPXLOPER)&xBool);
    return 1;
}