Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon COM /
avatar image
Question by Chinmay.Jokhla · Apr 22, 2020 at 01:59 PM · vbavba code to refresh an excel sheeteikonexcel

RSearch function in VBA code doesn't populate data

Hi,

I am trying to execute a VBA code which is as follows. the list of securities is not coming post the EikonRefreshWorksheet command - however, when i close and re-open my workbook (or file) - the formula automatically gets applied and the list of securities get populated. but, if i run it through a macro - the refresh doesn't happen, although the timestamp associated to the Rsearch function does get changed.


"

Set Crisil = ThisWorkbook.Worksheets("Issue Rating(Crisil)") -- Issue Rating(Crisil) is a worksheet in my active workbook

Crisil.Range("A6").Formula = "=RSearch(""BOND"",""RawContextFilter:'(DbType eq \'GOVT\' or DbType eq \'CORP\' or DbType eq \'AGNC\' or DbType eq \'OMUN\' or DbType eq \'OTHR\') and IsActive eq true' ParentOrgID:'""&$B$3&""'"",,""TRANSPOSE:YES"",D6)"

Application.Run "EikonRefreshWorksheet"


Any suggestions as to where i might be going wrong here?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov. · Apr 22, 2020 at 04:52 PM

I do not reproduce the issue as described. There's probably quite a number of very specific conditions that result in the behavior you experienced. One way to deal with this is try to isolate those conditions. Feel free to post your workbook here. Try to simplify it as much as possible while ensuring you can still reproduce the problem. I will then see if I can reproduce the behavior you experience on my end.
Alternatively you may want to consider using RSearch COM library instead of =RSearch worksheet function, which will allow you to access search results from VBA code without the need to paste them in an Excel range. This gives you more control over the flow. Follow the link below for a tutorial on RSearch COM library.

https://developers.refinitiv.com/eikon-apis/com-apis-use-microsoft-office/learning?content=3560&type=learning_material_item

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

creating a VBA button

Synchronous Refresh Methods for VBA in Excel

Download manager URLs

How do I trigger a VBA macro from within the TR function in Eikon Excel

Cannot retrive data in VBA from AdxRtHistory

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges