I'm using a sheet using TR Eikon Office to receive data from eikon and are trying using a macro in another workbook that copies and pastes this data. The macro opens the data downloader file and copy the data to paste this into the other workbook. The problem I encounter is that the macro is faster than updating the data. So in some formulas it copies "retrieving.." Do you have a solution for this?
I was thinking about a macro that says it should update the worksheet first. Hope you can help in this.
There are several ways you can go about this.
1. You can use MACRO keyword in =TR function, which allows to launch a macro once all the data retrieved by this instance of =TR function is returned into the worksheet. This approach is only practical if you're able to retrieve all the data you need with a single =TR function. For documentation on using MACRO keyword in =TR function see Eikon Excel Help.
2. Use synchronous methods to refresh Eikon Excel data retrieval functions in a workbook. See the following thread for details.
3. Use Eikon COM APIs for data retrieval instead of worksheet functions. This way you can do all your data retrieval in VBA, which gives you full control of the flow. For details see Eikon COM APIs for use in Microsoft Office section on this portal.