Share via


xlGetName

Applies to: Excel 2010 | Office 2010 | VBA | Visual Studio

Returns the full path and file name of the DLL in the form of a string.

Excel12(xlGetName, LPXLOPER12 pxRes, 0);

Parameters

This function has no arguments.

Property Value/Return Value

Returns the path and file name (xltypeStr).

Example

\SAMPLES\EXAMPLE\EXAMPLE.C

short WINAPI xlGetNameExample(void)
{
    XLOPER12 xRes;

    Excel12(xlGetName, (LPXLOPER12)&xRes, 0);
    Excel12(xlcAlert, 0, 1, (LPXLOPER12)&xRes);
    Excel12(xlFree, 0, 1, (LPXLOPER12)&xRes);
    return 1;
}

See Also

Concepts

C API Functions That Can Be Called Only from a DLL or XLL