How to register an ActiveX control manually (.ocx)

Article ID: 2746232 - View products that this article applies to.
Expand all | Collapse all


This article describes how to register an .ocx file manually.


You can use the Microsoft Register Server (Regsvr32.exe) to register an .ocx file manually. The syntax for using Regsvr32.exe is as follows:

Regsvr32 [/u] [/s] <OCX File Name>

Note /u means Unregister the .ocx file.
means Silent Mode (display no messages).

The following example registers the Microsoft MSCOMCTL ActiveX Control without displaying any messages: 

Regsvr32 /s c:\windows\system32\mscomctl.ocx

More information

Note: This needs to be run with administrator permissions

1.     Click Start, type cmd.

2.     Right-click the cmd icon, and then click Run as Administrator.

3.     At the command prompt, type the following command, and then press ENTER:

Regsvr32 /s c:\windows\system32\mscomctl.ocx
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.


Article ID: 2746232 - Last Review: August 16, 2012 - Revision: 1.0
Applies to
  • Microsoft Excel 2010
  • Microsoft Office Excel 2007
  • Microsoft Office Word 2007
  • Microsoft Word 2010
  • Microsoft Access 2010
  • Microsoft Office Access 2007

Give Feedback


Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from