Func1

Applies to: Excel 2013 | Office 2013 | Visual Studio

Example user-defined worksheet function demonstrates the return of a static string value. When GENERIC.xll is loaded, it registers this function so that it can be called from the worksheet.

LPXLOPER12 WINAPI Func1(LPXLOPER12 px);

Parameters

px (LPXLOPER)

This argument is ignored, and serves only to trigger Microsoft Excel to call the function.

Property value/Return value

LPXLOPER12: Always the string "Func1"

Example

See \SAMPLES\GENERIC\GENERIC.C for the source code for this function.

See also

Functions in the Generic DLL