Hi,
I would like to create excel functions in VB.NET. So far no problem, for example:
In VB.NET (using a COM class):
...and in VBAVB Code:
Public Function Test(ByVal a As Double) As Double Test = a End Function
VB Code:
Function ReturnNumber(ByVal v As Double) As Double Dim obj As ClassLibrary1.ComClass1 Set obj = New ClassLibrary1.ComClass1 ReturnNumber= obj.Test(v) End Function
My two questions are:
Is it possible to create an excel function in VB.NET without going through a wrapper function in VBA? I have heard, if you do it in C# this is possible.
Secondly, is there a way to generate help text for the function arguments (displayed in the function editor in VBA)?
Many thanks for the help.
Tino![]()




Reply With Quote