Func1
Applies to: Excel 2010 | Office 2010 | VBA | 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.