Solved

Word doesn't open file that's setup with VB- error: could not load some objects because they are not available on this machine

Posted on 2010-08-24
10
543 Views
Last Modified: 2012-05-10
The file works fine on a computer with Windows 7 Pro and Word 2007 Pro Plus, but the program won't run on the Windows 7 Pro computer with Word 2010.  When the file is opened it generates the error twice, could not load some objects because they are not available on this machine.  Then a VB error opens: Compile error:  Can't find project or library.  

I didn't create the file, just have people in my organizations use the file and it works for some but not everyone.  
0
Comment
Question by:ehess
10 Comments
 
LVL 3

Expert Comment

by:bobpsmith
ID: 33517419
Is this the complete error msg...

Compile error:  Can't find project or library

if not can you update with the complet message?
0
 
LVL 2

Expert Comment

by:tonygze
ID: 33517809
Try this...

MS word -> Options -> Add-ins -> in the drop down list find disabled items and click GO.

Enable anything that has been disabled.

Also in the add-in menu, compare the comms addins and the word addins with the working and non working machines.

After changing the settings, completely close word to check if the changes made any difference.
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
ID: 33518902
Open the VBA editor with Alt + F11.

Select the project for your document in the left hand pane.

From the VBA menu, choose, Tools > References...

Look in the list to see which of the references are flagged as 'MISSING'.

You can then uncheck the item, but the macro code is unlikely to work unless you can import the relevant file.
0
 
LVL 1

Author Comment

by:ehess
ID: 33522243
GrahamSkan, call me a novice, but I found Microsoft Windows Common Controls-2 6.0(SP6) was missing on the Word 2010 computer but I do not know how to import the file.  I did uncheck the MISSING file and the macro appears to run successfully, but I have a little more testing to do with it before I can completely confirm that was the fix.
0
 
LVL 1

Author Comment

by:ehess
ID: 33522299
I need to use the Microsoft Windows Common Controls-2 6.0(SP6).  How do I import the file?  
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 500 total points
ID: 33523362
The control comes with VB6, not with Windows or any version of Office, so you need to look on the machine that the document or template was running on.

The file name is MSCOMCT2.OCX, and is normally installed in the Windows\System32 folder. It will need to be registered by running something like.

 regsvr32 "C:Windows\system32\MSCOMCT2.OCX"
0
 
LVL 1

Author Comment

by:ehess
ID: 33523645
I did find the cab file to download from Microsoft and installed it, but when I register the file I get an error.  

The module "C:\Windows\System32\mscomct2.ocx"was loaded but the call to DllRegisterServerfailed with error code 0x8002801c.  
0
 
LVL 1

Author Comment

by:ehess
ID: 33523798
I ran the command prompt as administrator and got the file to register successfully.  
0
 
LVL 1

Author Closing Comment

by:ehess
ID: 33523809
Excellent instructions!  
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 33526598
Thank you. Very gratifying
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

929 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now