AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Active Contributor
38 Posts
1 Kudo
Registered: ‎03-22-2005
Post 11 of 12

Re: CAD VBA shows msg "Object library invalid...."

04-30-2012 10:26 AM in reply to: aunna



The test system I'm working with didn't have either MSCOMCTL.OCX or MSCOMCT2.OCX.


My system had MSCOMCTL.OCX, so I copied this file to the test system and registered it.


My VBA programs now work as expected.


Thank you for your help.


Although I'm concerned that this might have un-done the Microsoft security update.


I have also started a trouble ticket with AutoDesk regarding this problem. I'm very curious to see what they have to say about this.


Thank you again,


Product Support
182 Posts
25 Kudos
Registered: ‎06-11-2007
Post 12 of 12

Re: CAD VBA shows msg "Object library invalid...."

05-04-2012 09:06 AM in reply to: brianaubert

Hi all,


the following solution for this issue has now been posted on the AutoCAD Knowledgebase:


Error "Object Library invalid" when running VBA applications


Best regards,


Silvia Menon
Support Specialist
Product Support
Autodesk, Inc.


If my post answers your question, please click the "Accept as Solution" button. This will help everyone find answers more quickly.


Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!