Answered by:
I need Admin rights to my personal PC and need help trying to do this/Trying to register mscomct2.ocx

Question
-
I originally posted this question over on the Microsoft Community site and the response was to post this at Microsoft MSDN forums.
I'm hoping I choose the right forum category for this.
I'm new to windows 8.1 and just go my new pc. I'm working with Excel 2013 and there are some controls missing and I need to install/register them on my pc.
I want to access the MonthView Control in the toolbox through the Visual Basic Editor. Since this control is not installed already i need to copy this file(mscomct2.ocx) I guess to the windows/system32 directory and then go through the process of registering it. However when I try to register it I get the following error:
The module "c:\Windows\System32\mscomct2.ocx" failed to load.
Make sure the binary is stored at the specified path of debug it to check for problems with the binary or dependent .DLL files.
The specified module could not be found.
I ran the following at the command prompt:
regsvr32 c:\Windows\System32\mscomct2.ocx
The ocx file name is in all lower case and I checked to make sure it was located in the system32 directory, and it is.
Here are my questions:
Why am I getting this error?
I'm running this at the command prompt (admin)
I don't know if I have admin rights on my personal pc. How do I check this?
Am i missing another file other than the .ocx file I mentioned above?
Keith
Friday, April 10, 2015 4:00 PM
Answers
-
Seems somebody gave you a wrong advice. This is a developers site for current software.
OCX is very old, therefore only Visual Studio Net languages are supported. Yours not.
However administrator rights has really to do with the Answer community.
Developers need officially for that also the help of system engineers.
Success
Cor- Edited by Cor Ligthert Friday, April 10, 2015 4:04 PM
- Marked as answer by Carl Cai Monday, April 20, 2015 9:32 AM
Friday, April 10, 2015 4:04 PM -
If you are running the Command Prompt as Administrator then I would make sure the Windows Common control is installed in the correct folder and that you are using the correct version of Regsvr32. If your system is 64-bit the file should be copied to the Windows\SysWOW64 folder (32-bit) and you should be running the version of Regsvr32 in this folder.
You should only be using Windows\System32 if your operating system is 32-bit. If you need to check to see if the user is an Administrator then use the User Accounts applet in Control Panel
Paul ~~~~ Microsoft MVP (Visual Basic)
- Proposed as answer by Cor Ligthert Friday, April 10, 2015 5:08 PM
- Marked as answer by Carl Cai Monday, April 20, 2015 9:32 AM
Friday, April 10, 2015 4:13 PM
All replies
-
Seems somebody gave you a wrong advice. This is a developers site for current software.
OCX is very old, therefore only Visual Studio Net languages are supported. Yours not.
However administrator rights has really to do with the Answer community.
Developers need officially for that also the help of system engineers.
Success
Cor- Edited by Cor Ligthert Friday, April 10, 2015 4:04 PM
- Marked as answer by Carl Cai Monday, April 20, 2015 9:32 AM
Friday, April 10, 2015 4:04 PM -
Cor is right, however, if you're an Excel developer this could also be the right place:
https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
(Probably either dependent dlls are missing, or Excel is not 32 bits (don't know if this could be a problem with OCX files (long ago...)), or try C:\Windows\SysWOW64\regsvr32.exe)
((If the control is not installed you need to install the software that contains it))
Armin
Friday, April 10, 2015 4:13 PM -
If you are running the Command Prompt as Administrator then I would make sure the Windows Common control is installed in the correct folder and that you are using the correct version of Regsvr32. If your system is 64-bit the file should be copied to the Windows\SysWOW64 folder (32-bit) and you should be running the version of Regsvr32 in this folder.
You should only be using Windows\System32 if your operating system is 32-bit. If you need to check to see if the user is an Administrator then use the User Accounts applet in Control Panel
Paul ~~~~ Microsoft MVP (Visual Basic)
- Proposed as answer by Cor Ligthert Friday, April 10, 2015 5:08 PM
- Marked as answer by Carl Cai Monday, April 20, 2015 9:32 AM
Friday, April 10, 2015 4:13 PM -
Ok. I'll post this question in that forum. I checked my system type and it is 64 Bit
Friday, April 10, 2015 5:05 PM -
I checked my system and it is a 64 bit.
When you say 'Windows Common Control' is that what this mscomct2.ocx file is? If not where do I get this windows Common Control?
I checked about excel and it is 2013 and it says 32 bit.
The previous reply mentioned '((If the control is not installed you need to install the software that contains it))'
What is the control and the software that contains it will allow me to add and date picker/month view to a user form?
Thanks You!!!
Keith
Keith Aul
Friday, April 10, 2015 5:14 PM -
The previous reply mentioned '((If the control is not installed you need to install the software that contains it))'
The way you've described it by saying you've got a new PC and some controls "are missing", I assumed that they've already been there before. Consequently, there must have been software on your previous machine (or installation) that also installed the now missing controls. However, I do not know which software that was.
What is the control and the software that contains it will allow me to add and date picker/month view to a user form?Armin
Friday, April 10, 2015 5:20 PM -
This component is typically installed with Classic VB (version 6.0 and prior). You can get it from the last VB 6.0 SP if you don't have VB 6.0 installed. I cannot recall whether this SP requires that VB 6.0 be installed.
http://www.microsoft.com/en-us/download/details.aspx?id=24417
Note that the usage of this component in VB.NET or the Office apps may require a license file:
https://support.microsoft.com/en-us/kb/318597/
https://support.microsoft.com/en-us/kb/194751/
Paul ~~~~ Microsoft MVP (Visual Basic)
Friday, April 10, 2015 5:26 PM