How to enable early binding of VBA object variable to COM classes created in .NET
问题 I seem to be having trouble getting my COM class library (.NET-based) to support early binding. I am creating a class library in VB.NET 2003 for use in Office 2003 VBA (and later for Office 2010). Documentation @ StackOverflow and elsewhere has brought me to this bit of code: Imports System.Runtime.InteropServices <InterfaceType(ComInterfaceType.InterfaceIsDual), _ ComVisible(True), _ Guid("<some valid GUID>")> _ Public Interface _TestCOMClass Function Test() As String End Interface