Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reference to .NET 1

Status
Not open for further replies.

RapidE

Programmer
Oct 16, 2003
4
SK
Can sombody explain me why I can not add reference to the dll from excel VBA macro?

I have created a Dll using VB.NET and I want to add this dll as reference for VBA macro written in Excel and later possibly for other Office products.

Thanx
 
Did you tell VB.NET to create a COM-Callable Wrapper (CCW) for your class? The COM and .NET worlds can talk to each other, but you have to make sure you set the options correctly.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Thanks chiph, got a star.

I don't use Microsoft IDE. I use SharpDevelop it is FREE tool to develop .NET application under VB and C#. But I created COM callable *.tlb using CCW delivered with Microsoft .NET SDK package.

See SharpDeveloper homepage at
 
Make sure you also turn Option Strict On, and resolve any casting errors, before using your DLL from other apps, as it will greatly help in error trapping.


Sweep
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top