Microsoft treeview control, Library Not Registered.

I am trying to us the Microsoft treeview control, verion 6 when i add the control on my userform I get the error Library Not Registered. How can I eliminate this?
Answer
Answer

Try re-registering the control file.  Close Excel and go to the Windows Start menu and choose Run. There, enter

 

RegSvr32 C:\Windows\SysWOW64\MSCOMCTL.OCX /u

and click OK.

 

The /u suffix (note the space before / character) is short for "unregister" that will remove the control's information from the Registry.  Next, register the control to get it back.

 

RegSvr32 C:\Windows\SysWOW64\MSCOMCTL.OCX

and click OK.

 

If you get a "file not found" error from RegSvr32, change "SysWOW64" to "System32" in the run commands. "SysWOW64" is for 64-bit machines. "System32" is for 32-bit machines.

 

Now you should be able to add it to the VBA UserForm toolbox by clicking "Additional Controls" and scrolling down to Microsoft TreeView Control Verison 6.

 

Cordially,
Chip Pearson
Excel MVP 1998 - 2014
Pearson Software Consulting, LLC
www.cpearson.com

6 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated October 25, 2023 Views 8,487 Applies to: