Did you make your .Net library viewable to COM
You can either set the ComVisible attribute in your assemblyinfo.cs file, or modify your project settings. In Visual Studio 2005 this is accomplished by selection the application tab of your project's properties. Then, click on the 'Assembly Information' button. Finally, select the checkbox 'Make Assembly Com-Visible'.
Alternatively, you can elect to manually set the ComVisible attribute to control specific types you would like to make available to VBA.
ComVisible usage:
[ComVisible(true)]
class SomeClass
{
}
Hope this helps...
|