1

I am trying to get a VB.Net DLL function exposed as a COM to work in Excel. The post Accessing .NET functions exposed as COM in Excel was very helpful. I was able to successfully register the dll and tlb files.

The class object I created is visible to Excel, but its member is not. I am working in Windows 7-64 bit with Office 2010-32 bit. I compiled the dll for x86.

Here is the code

Namespace PRISMTest
    Public Class Test
        Public ReadOnly Property CheckExcelVersion As Integer
            Get
                Return 15
            End Get
    End Class
End Namespace

And what I see in the Excel Object Browser. Any ideas?

Object Browser

1
  • In the future, please post any image files as .PNG and not JPEG. PNG is a lot smaller, which matters to people reading on mobile devices. Thanks. Commented Feb 13, 2016 at 1:34

1 Answer 1

0

I figured it out. I needed to add the following code:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.