[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

VBA: Class does not support Automation or doesn or support expected interface

Posted on 2011-09-08
10
Medium Priority
?
1,437 Views
Last Modified: 2012-05-12
When running my VBA in Excel 2007 on a second machine, I get the following error:

Run-time error '430'
"Class does not support Automation or doesn or support expected interface"

When I click Debug, the cursor goes to thie line:

Set MyDatabase = New ADODB.Connection


I must have installed something onto my machine to get it to work, or there is some other configuration difference between my machine (where it works) and the other machine.

Any ideas?

Thanks.
0
Comment
Question by:newbieweb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
10 Comments
 
LVL 5

Expert Comment

by:slycoder
ID: 36506948
At first thought - I would suggest check MS Office Service Pack versions or Office Updates.

Thanks
0
 
LVL 6

Expert Comment

by:reitzen
ID: 36508322
In the VBA editor, select Tools > References and compare your machine to the machine where you're getting the error.
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 36509779
Did you build it on a Win7 machine with SP1 applied?
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:newbieweb
ID: 36510035
> Did you build it on a Win7 machine with SP1 applied?

Yes. BUT I founf the machine that's failing DOES NOT have SP1 for Windows 7.

> I would suggest check MS Office Service Pack versions or Office Updates.

How do I find the Office Service Pack level? It used to be as easy as Help->About in Word. But with 2007 they have hidden that feature :(
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 2000 total points
ID: 36510089
Exactly. It's a problem with SP1 - ADO code will only then work on another machine if it has SP1 installed. See this MSKB article: http://support.microsoft.com/kb/2517589

Regards,
Rory
0
 

Author Comment

by:newbieweb
ID: 36510166
Thanks. How will this work do on XP?

And should it get compiled on XP? Will that "solve" the SP1 problem on Windows 7?
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 36510202
Did you read the article?
0
 

Author Comment

by:newbieweb
ID: 36510278
Also, I was reminded that VBA is interpreted. Does this change your opinion about W7 SP1 being the cause of this error?
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 36510297
No, it doesn't. I take it from that that you have not read the article (since it explicitly mentions VBA).
0
 

Author Closing Comment

by:newbieweb
ID: 36510341
Thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question