VBA calling EViews prgs - is it possible on E6?

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

sschaffrath
Posts: 15
Joined: Tue Nov 16, 2010 6:05 am

VBA calling EViews prgs - is it possible on E6?

Postby sschaffrath » Mon May 21, 2012 12:21 pm

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!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13585
Joined: Tue Sep 16, 2008 5:38 pm

Re: VBA calling EViews prgs - is it possible on E6?

Postby EViews Gareth » Mon May 21, 2012 1:10 pm

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.

sschaffrath
Posts: 15
Joined: Tue Nov 16, 2010 6:05 am

Re: VBA calling EViews prgs - is it possible on E6?

Postby sschaffrath » Mon May 21, 2012 1:29 pm

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?

sschaffrath
Posts: 15
Joined: Tue Nov 16, 2010 6:05 am

Re: VBA calling EViews prgs - is it possible on E6?

Postby sschaffrath » Mon May 21, 2012 1:32 pm

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")

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13585
Joined: Tue Sep 16, 2008 5:38 pm

Re: VBA calling EViews prgs - is it possible on E6?

Postby EViews Gareth » Mon May 21, 2012 1:35 pm

Yep, although you might need quotes around the full path if you have spaces in it.

sschaffrath
Posts: 15
Joined: Tue Nov 16, 2010 6:05 am

Re: VBA calling EViews prgs - is it possible on E6?

Postby sschaffrath » Tue May 22, 2012 11:23 am

Thanks!

Silvana
Posts: 13
Joined: Fri Jun 10, 2011 2:57 pm

Re: VBA calling EViews prgs - is it possible on E6?

Postby Silvana » Mon Jun 03, 2013 2:50 pm

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.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests