Results 1 to 3 of 3

Thread: Createing Excel Function in VB.Net

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    2

    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:
    1. Public Function Test(ByVal a As Double) As Double
    2. Test = a
    3. End Function
    ...and in VBA
    VB Code:
    1. Function ReturnNumber(ByVal v As Double) As Double
    2. Dim obj As ClassLibrary1.ComClass1
    3. Set obj = New ClassLibrary1.ComClass1
    4. ReturnNumber= obj.Test(v)
    5. 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

  2. #2
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    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
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    2

    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
  •  



Click Here to Expand Forum to Full Width