Macro stops after import

For questions regarding programming in the EViews programming language.

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

viktorz
Posts: 3
Joined: Tue Feb 04, 2014 4:35 am

Macro stops after import

Postby viktorz » Tue Feb 04, 2014 4:47 am

Hi, I am using the com add-in to run some seasonal adjusting from Excel through Eviews. I am using following VBA code:

Code: Select all

Sub SeaAdj() Dim mgr As New EViews.Manager Dim App As EViews.Application Dim sheet_update As Worksheet Dim asheet As Worksheet Set asheet = ActiveSheet Set App = mgr.GetApplication(ExistingOrNew) Dim datum As String datum = InputBox("Fill the data of the last known figure in Eviews format (e. g. 1998q1).", "Date") lspath = "Z:" App.Run "cd " & lspath App.Run "wfopen qpm_sk" App.Run "import(resize) Z:\922\923new\VYSTUPY\Slovakia\quarterly\Model\history_sk.xls range='Data'" App.Run "smpl 1998q1 " & datum App.Run "run seasonal_adjustment" ......
After the code performs the import line the macro stops withou a notice. Originally I had a program with import lines which called, but that ended in the same way.

Thanks for help.

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

Re: Macro stops after import

Postby EViews Gareth » Tue Feb 04, 2014 8:51 am

Are you sure it ends on the import command?


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests