VBA Lookup and @date : take 2

For questions regarding programming in the EViews programming language.

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

DBel2012
Posts: 69
Joined: Sun Sep 30, 2012 5:37 am

VBA Lookup and @date : take 2

Postby DBel2012 » Wed Feb 05, 2014 7:52 am

Good morning,

I'm using EViews 7 and Excel 2010.

I did not get any reply to the first version of this topic posted earlier this week, so I will restate my question :

The commmand app.GetGroup("@date v41691903_SA", sampleData, NATypeAsExcelNA) imports the series v41691903_SA along with the date labels, as expected.

Since I need to identify what I will be importing (name of the series) in my Excel file, I use the following command :
vecNameSeries = app.Lookup("@date v41691903_SA", "series", LookupReturnMatrixAsColumns)

I would expect that command to provide me with a name for @date and a name for the series I'm importing. However, the name for the series «v41691903_SA» appears twice in the vecNameSeries.

Is there something I'm doing wrong?

Thanks!

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

Re: VBA Lookup and @date : take 2

Postby EViews Gareth » Wed Feb 05, 2014 9:19 am

@date is not a series in the workfile. So lookup won't be able to find it.

DBel2012
Posts: 69
Joined: Sun Sep 30, 2012 5:37 am

Re: VBA Lookup and @date : take 2

Postby DBel2012 » Wed Feb 05, 2014 9:35 am

Hi Gareth,

I see. So the idea would be to provide a name myself for @date.

Thanks!

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

Re: VBA Lookup and @date : take 2

Postby EViews Gareth » Wed Feb 05, 2014 9:42 am

Yes. If you have a series in the workfile called "date", then lookup would be able to find it.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest