Receiving Error Loading Type Library/DLL When Using ActiveX Automation With Microsoft Excel and LabWindows™/CVI™

Updated May 10, 2019

Reported In


  • LabWindows/CVI Full

Issue Details

I created an application in LabWindows™/CVI™ that communicates with Microsoft Excel via ActiveX Automation. However every time I launch a new Excel application, I receive error -2147312566 with the message "Error loading type library/DLL". The installation of Microsoft Excel was normal and its seems to be working correctly. Why am I getting this error and how can I resolve it?


This ActiveX error is typically associated with registration of the software (i.e. Windows registry). Unregister and then register the ActiveX components for excel.exe located at 

C:\Program Files (x86)\Microsoft Office\OfficeXX (Windows 7)
C:\Program Files (x86)\Microsoft Office\root\OfficeXX (Windows 10)


Additional Information


Not Helpful