Page 1 of 1
VBA calling EViews prgs - is it possible on E6?
Posted: Mon May 21, 2012 12:21 pm
by sschaffrath
I'm in need to create some Excels enviroments, but I need to call a couple of eviews routines.
Therefore, the final user should only run the program in excel and not require additional program runs.
I've seen Eviews COM may work for me, but I only have Eviews 6. Is there a way to run prgs from vba while with EViews6?
Thanks!
Re: VBA calling EViews prgs - is it possible on E6?
Posted: Mon May 21, 2012 1:10 pm
by EViews Gareth
You can execute the EViews executable, passing in the name of an EViews program as an argument to the executable, which will tell EViews to run that program upon launch.
Re: VBA calling EViews prgs - is it possible on E6?
Posted: Mon May 21, 2012 1:29 pm
by sschaffrath
Thank you for your prompt reply...
shell ("C:\Program Files (x86)\EViews6\Eviews6.exe")
The basic command would be like that, wouldn't it?
How can I call the .prg then?
Where do I tell the arguments (like the route where the .prg is saved) to call the routine?
Re: VBA calling EViews prgs - is it possible on E6?
Posted: Mon May 21, 2012 1:32 pm
by sschaffrath
Like this I suppose?
Shell ("C:\Program Files (x86)\EViews6\Eviews6.exe \\FERRERE8\Economia\Sistema Financiero\Informe Sistema Financiero\Insumos Excel\Cap 1\Estimaciones\pred_creditos.prg")
Re: VBA calling EViews prgs - is it possible on E6?
Posted: Mon May 21, 2012 1:35 pm
by EViews Gareth
Yep, although you might need quotes around the full path if you have spaces in it.
Re: VBA calling EViews prgs - is it possible on E6?
Posted: Tue May 22, 2012 11:23 am
by sschaffrath
Thanks!
Re: VBA calling EViews prgs - is it possible on E6?
Posted: Mon Jun 03, 2013 2:50 pm
by Silvana
a USER posted this command for excel VBA
Shell ("C:\Program Files (x86)\EViews6\Eviews6.exe \\FERRERE8\Economia\Sistema Financiero\Informe Sistema Financiero\Insumos Excel\Cap 1\Estimaciones\pred_creditos.prg")
sschaffrath
--------------------------------------------------------------------------------
Report this postReply with quoteRe: VBA calling EViews prgs - is it possible on E6?
by EViews Gareth on Mon May 21, 2012 4:35 pm
Yep, although you might need quotes around the full path if you have spaces in it.
On the answer above-- where exactly would the extra quotes go if your full path to the eviews program had spaces in it?
thanks.