Function Declarations

link - github.com/Excel-DNA/ExcelDna/wiki/ExcelFunction-and-other-attributes


Function Declarations

You are able to define the function wizard category as well as the function description and argument descriptions.
You can set the function wizard category as well as the function and argument descriptions.
You can even provide a tooltip
These customisations can be made by adding .NET attributes to the function declarations.
You need to reference the ExcelDna.Integration.dll assembly.
You do not need to redistribute the ExcelDna.Integration file - a copy is embedded as a resource.

[ExcelDna.Integration.ExcelFunction(Description="HelloWorld", Name="myFunction")] 
public static string udf_MYFUNCTION([ExcelDna.Integration.ExcelArgument(Description=@"Text Value")] string sText)
{
   return sText + sText;
}




© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext