PDA

View Full Version : Solved: Register a dll via VBA



ALe
11-17-2005, 04:53 AM
Hello everybody.

Here's my question. Is it necessary to register a dll to use it? The way I Know to register a dll is to go to Start, Run and register it manually. Is there any way to register a dll via VBA or via VB?

Thanks!

Bob Phillips
11-17-2005, 05:22 AM
You will need to register an ActiveX DLL, but probably not a standard DLL.

This MS article shows how to register an ActiveX DLL from a client

http://support.microsoft.com/default.aspx?kbid=173407
How To Register Your Custom ActiveX DLL from a Client

ALe
11-17-2005, 05:39 AM
Now I'm busy. I'll have a look later. Thank you. Anyway I think it's the right article so I mark this thread as solved.

johnske
11-17-2005, 05:41 AM
There's also a kb entry that installs and registers activex .dll and .ocx files here http://www.vbaexpress.com/kb/getarticle.php?kb_id=447

Ivan F Moala
11-17-2005, 06:16 AM
John, that should work for custom dlls and ocx's but may not work for licenced ones.
eg. mscomm32.ocx that comes with VB6 and may show that it is avail in your references (VBA) but would be unavail due to licencing. There is a way around this however.

ALe
11-17-2005, 08:14 AM
Sorry. I haven't seen the kb entry. Thanks all of you for the link and the article: That's what I was looking for.