troubleshooting Question

Problem instantiating an .net object from VBA

Avatar of Declan Basile
Declan BasileFlag for United States of America asked on
.NET ProgrammingVBA
10 Comments1 Solution22 ViewsLast Modified:

An Access 2003 program has a reference to a .net dll.  *On one computer only (the other computers don't have this problem)*, vba throws an error when it tries to create an instance of a class defined in the dll.  Vba declares a variable of that type without an error; it's when it tries to create an instance of the class types that it throws an error.  The error message is "Class does not support Automation or does not support expected interface."  I wrote code so show the references, and the reference to the .dll has the correct path and is not broken.  xyz.dll and xyz.tlb are both in the SysWOW64 folder, and when I run "regasm.exe xyz.dll /codebase" I get a successful message.  I even tried to reinstall Access 2003 runtime and I tried unregistering and re-registering xyz.dll but still have the same problem.  How can I fix this problem?

Declan Basile

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 10 Comments.
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>


Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 10 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004