Solved

Excel VBA Tools-->References "Missing"

Posted on 2014-01-17
6
9,918 Views
Last Modified: 2014-01-17
Hi,

I have inherited a complex spreadsheet.

I note that in Tools-->References I have a value

MISSING: Microsoft Windows Common Controls 2 6.0(SP4)

I suspect that this may be causing problems else.

How do I rectify?

Thanks!
0
Comment
Question by:Patrick O'Dea
6 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 167 total points
ID: 39788290
HI,

you can download it here

http://www.microsoft.com/en-us/download/details.aspx?id=10019
 
Regards
0
 
LVL 29

Assisted Solution

by:gowflow
gowflow earned 167 total points
ID: 39788309
This means that the file
mscomct2.ocx is missing from your system but for sure you have a newer version.

do the following:

I presume that this excel has a userform and this reference is to load controls. so first under refrences you should have Additional Controls click on that. then it will display only the selected ones what you do is remove the tick to view all the refrences and go down in the list till you find the first occurrence of
Microsoft Windows Common Controls 2 6.0

the one I have in my system and you should hv the same is
Microsoft Windows Common Controls 2 6.0(SP6)

so make sure you unticked the Missing reference so you can now tick this reference if you have a later one then tick it it wont harm.

Press ok exit excel without saving then re-open the excel it may work or tell you still missing.

Let me know
gowflow
0
 
LVL 21

Assisted Solution

by:Ejgil Hedegaard
Ejgil Hedegaard earned 166 total points
ID: 39789095
I have seen this happen on several computers.

Often the reference is not marked missing, but the controls wont load for programs that has been working for a long time.

It is normally happening just after an automatic windows update, that the reference suddenly is broken.

It can be both files MSCOMCTL.OCX and MSCOMCT2.OCX

After trying several ways to solve it, reinstall, download and gowflows solution that sometimes helps, but not always, I have found this method that so far solve the problem.
I disconnect the file from registry with the windows run command
regsvr32 /u mscomctl.ocx
and connect it again with
regsvr32 mscomctl.ocx
Similar with the file mscomct2.ocx
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 29

Expert Comment

by:gowflow
ID: 39789326
well this was my next suggestion in case what I proposed did not work is to unregister the file and re-register it again.

same as was suggested but with a slight difference you need to provide the full path of the file. If you have Win 7/8 64bits then it should be

regsvr32 /u C:\windows\sysWOW64\mscomctl2.ocx
regsvr32 C:\windows\sysWOW64\mscomctl2.ocx

if you have a 32bits operating system then
regsvr32 /u C:\windows\system32\mscomctl2.ocx
regsvr32 /u C:\windows\system32\mscomctl2.ocx


gowflow
0
 

Author Comment

by:Patrick O'Dea
ID: 39789380
Hi folks!

I should mention I am using the "cloud" Excel 365 Home Premium.

The mscomctl2.ocx file DOES NOT exist in the SysWOW64 path.

However, the here is a mscomctl.ocx (note no "2" in filename).  
I disconnected this and reconnected.

Interestingly, it is dated 2005 and the filename is all in uppercase.

I am re-booting PC to see if it works...
Excel-References-tmp.pdf
0
 

Author Closing Comment

by:Patrick O'Dea
ID: 39789455
Thanks Folks,

I will award points and close this call.

(Not quite solved yet)

I will open another one with an attachment - that may or may not help!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

932 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

10 Experts available now in Live!

Get 1:1 Help Now