Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Referencing .NET DLL built for COM in VBA

I have a DLL that I wrote in .Net (VS 2005) and built for Com Interop. I can
make a reference to the DLL inside of my Excel 2003 VBA code by choosing
Tools-References from the VBA editor. I can create an instance of the
object and everything works fine.

The problem I am having is when I take this DLL and put it on a different
machine along with the XLA code that I created above. I ran Regasm.exe
/Codebase <Full path of DLL name for the .NET Com Interop DLL. The Excel
Add-in on this machine fails to find the DLL. If I look in the
Tools-References in Excel VBA on this machine, it shows that the DLL is
missing and wants to find it at the same path that it was on my machine.

I even cleaned up the DLL on my machine and just copied the DLL to my
machine and ran Regasm on it. Now I can't reference the DLL on my machine.
Only when I build through Visual Studio on my machine can I see the reference
from VBA.

What else is Visual Studio doing to register this DLL besides just running
Regasm?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can a formula be "built" referencing text content from another cel Pradhan Excel Worksheet Functions 3 March 10th 10 10:56 PM
referencing a different tab by referencing a list in the current s Kevin Excel Worksheet Functions 3 July 6th 07 07:57 PM
Can I do this with built in functions? Conan Kelly Excel Worksheet Functions 3 December 6th 05 08:52 PM
how was this built vincent Excel Programming 1 October 13th 03 09:17 PM
Built in Commandbars Dave Martin Excel Programming 2 August 31st 03 03:47 AM


All times are GMT +1. The time now is 09:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"