VBA interop with VSTO managed code in VS 2008

Play VBA interop with VSTO managed code in VS 2008

The Discussion

  • User profile image
    Hello Dan,

    I am currently working on VSTO.
    As far as I know, it is not possible to write Excel UDFs directly in .Net, you have to rely somehow on VBA as a gateway to do this.

    Your screencast does just what I need to implement.

    I try to implement the second part of the screencast, to no avail.

    The properties pane for the "workbook", under the VBA Interop category does not show the "VBACallsEnabled" option. However the second one,
    "ReferenceAssemblyFromVBAproject" is featured.

    I set it to "true", run the project, but the DLLs are not referenced, nor the VBA code referencing the .Net created...

    Any ideas, tips, would help.

    I have VS Studio 2008 Pro Edition, running on XP Pro.


    PS : All that aside, I found your videos on VSTO quite instructive, far more than other VSTO videos I found elsewhere....
    Congrats !
  • User profile image
    Hello again,

    I found this article:
    As a matter of fact, I was coding in C#, this might be the reason why.

  • User profile image
    Daniel Moth
    Hi cotasson

    Glad you found a solution soon after posting the question. For future VSTO questions the best place is this forum:


Add Your 2 Cents