We help IT Professionals succeed at work.
Get Started

Problem with GetObject function in MS Access

dsoderstrom asked
Last Modified: 2014-05-02
I am trying to open excel  from vba code in Access 2010 using the GetObject function.
My code is as follows:
      dim xlObj as Object
      Set xlObj = GetObject(, "excel.application")

I get the following error  on the second line:

      Run-time error '429':
      ActiveX component can't create object

What is strange is that this was working for a few iterations and now it doesn't.
The first time if failed I did a decompile of the data base and that got it to work for one time.  But then if failed with the same message again.

Any ideas on what is causing this?
Watch Question
Top Expert 2016
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE