By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,877 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

regasm question

P: n/a
I used the following statement to unregister a COM Class:

regasm "path\myCOMLib.dll" /u

Why does the class (myCOMClass) still show up in the References list in the
VBA editor? (It however won't instantiate in VBA which is what I'd expect as
it is unregistered.)

What do I have to do to remove it from the References list?

The class also continues to show up in the registry under under
HKEY_CLASSES_ROOT, HKEY_LOCAL_MACHINE, etc. How do we remove it from the
registry?

Thanks
Mark

at the command prompt and it said it
couldn't find the dll.

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
>I used the following statement to unregister a COM Class:

regasm "path\myCOMLib.dll" /u

Why does the class (myCOMClass) still show up in the References list in the
VBA editor? (It however won't instantiate in VBA which is what I'd expect as
it is unregistered.)

What do I have to do to remove it from the References list?

You have to unregister the typelib too by including the /tlb switch.
Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 21 '05 #2

P: n/a
Thanks - that did the trick.

Is there anything else I need to know about the unregistor process?
"Mattias Sjögren" wrote:
I used the following statement to unregister a COM Class:

regasm "path\myCOMLib.dll" /u

Why does the class (myCOMClass) still show up in the References list in the
VBA editor? (It however won't instantiate in VBA which is what I'd expect as
it is unregistered.)

What do I have to do to remove it from the References list?

You have to unregister the typelib too by including the /tlb switch.
Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.