Unable to load Microsoft Excel Automation Library

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

CCB
Posts: 4
Joined: Mon Jul 01, 2013 11:53 pm

Unable to load Microsoft Excel Automation Library

Postby CCB » Mon Aug 04, 2014 11:45 pm

Good morning,
I recently updated Office 2010 to Office 2013, and then went back to Office 2010 due to compatibility issues.
Ever since, dumping data to Excel with mode=update produces the "Unable to load Microsoft Excel Automation Library" error.
Code snippet to recreate the error:

wfcreate a 1990 2000
series test=0
wfsave(type=excelxml, mode=update) a.xlsx @keep test

The same code without mode=update works fine. Repairing the Office installation does not help, and the Eviews addin appears to be installed and active in Excel. Any ideas on how to fix this?
Thanks and best regards,
Ulrich

EViews Steve
EViews Developer
Posts: 844
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: Unable to load Microsoft Excel Automation Library

Postby EViews Steve » Tue Aug 05, 2014 7:46 am

My guess is that Excel COM registration has been messed up on your machine.

Is Excel running and does it have that file open at the time you run with wfsave command?

I believe if Excel is shutdown, EViews will write the data directly to the file without using Excel COM Automation (thus avoiding the error you currently get). If Excel has the file open and has locked it, EViews then tries to send the data via COM automation to Excel. The progid of the object EViews is trying to create & use is "Excel.Application".

In any case, try having Excel restore it's registry settings by running the following:
(I found this in the following microsoft post: http://support.microsoft.com/kb/292491)

Code: Select all

"c:\program files\microsoft office\office\excel.exe" /regserver
You should adjust the path above to be correct for your version of Excel. Run this command in a DOS command window that has Admin rights.

Steve

CCB
Posts: 4
Joined: Mon Jul 01, 2013 11:53 pm

Re: Unable to load Microsoft Excel Automation Library

Postby CCB » Tue Aug 05, 2014 8:04 am

If Excel is not open when using the wfsave with mode=update command, EViews either crashes or reports the same Automation Library error with about equal probability.
Restoring the registry unfortunately did not solve this issue.
I guess I will have to go for re-installing EViews, Office, both, or probably even wipe the whole system if that doesn't help.
Thanks!
Ulrich


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest