EViews com automation for Excel
Posted: Wed Aug 21, 2013 9:03 am
Hi, I've recently updated me EViews to 8 version from the 7 I was using until now. I had several macros written for excel, that were connecting with EViews through the old COM library. After updating I changed the reference in excel (as the old one was missing) to EViews 8.0 Type Library. However one I'm trying to run my programmes through excel, it doesnt work, it seems that the application is not properly recognized, below is the code I use to call EViews:
Dim mgr As New EViews.Manager
Dim app As EViews.Application
Set app = mgr.GetApplication
app.Show
In one of the files there is no action doen, where in the other I get error, which stops the macro at "Set app = mgr.GetApplication" point:
Run-time error '48':
Error in loading DLL
Do you have any ideas what i can try to do? When this didnt work I tried to run eviews with /register parameter, as it was done in the old version, but this didnt help at all. I also tried to add the NewInstance in mgr.GetApplication, but result was same as without the parameter. I'm a bit stuck at this point, as I have no idea, how to get things running.
Dim mgr As New EViews.Manager
Dim app As EViews.Application
Set app = mgr.GetApplication
app.Show
In one of the files there is no action doen, where in the other I get error, which stops the macro at "Set app = mgr.GetApplication" point:
Run-time error '48':
Error in loading DLL
Do you have any ideas what i can try to do? When this didnt work I tried to run eviews with /register parameter, as it was done in the old version, but this didnt help at all. I also tried to add the NewInstance in mgr.GetApplication, but result was same as without the parameter. I'm a bit stuck at this point, as I have no idea, how to get things running.