|
-
Feb 5th, 2006, 05:21 AM
#1
Thread Starter
New Member
Createing Excel Function in VB.Net
Hi,
I would like to create excel functions in VB.NET. So far no problem, for example:
In VB.NET (using a COM class):
VB Code:
Public Function Test(ByVal a As Double) As Double
Test = a
End Function
...and in VBA
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
-
Feb 5th, 2006, 05:32 PM
#2
Re: Createing Excel Function in VB.Net
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.
Hi,
I think it is possible to create an Excel Function in VB.Net.
See this link:
http://msdn.microsoft.com/library/de...HV05205786.asp
Hope it helps,
sparrow1
-
Feb 6th, 2006, 03:11 PM
#3
Thread Starter
New Member
Re: Createing Excel Function in VB.Net
Thanks, will have a look at it.
Tino
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|