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 emmanuel.chaslin · Sep 29, 2020 at 02:52 PM · excelvba

VBA / Refresh Eikon Formulas

Hello,


I am using a VBA in file A to update prices. Those prices are found with Reuters formulas located in file B.

I open the file B as read only, refresh the formulas with the below instructions, but nothing happens and the prices dont get updated. It seems that if I open file B manually and refresh, the prices update correctly.

"

Application.Run "PLRefreshAllEventHandler"

Calculate

"


Any suggestion how to solve this?


Thanks in advance.

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.

2 Replies

  • Sort: 
avatar image
Best Answer
Answer by emmanuel.chaslin · Sep 29, 2020 at 04:30 PM

Hello I found the answer:


DoEvents

Application.Run "EikonRefreshWorkbook", True, 120000

DoEvents

Thanks

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.

avatar image
REFINITIV
Answer by Alex Putkov. · Sep 29, 2020 at 04:32 PM

I'm not reproducing the behavior you describe on my end. I just created two spreadsheets: one named Test2.xlsx containing =TR function retrieving some fast updating market data (to easily detect if the data has been refreshed), the other containing a VBA procedure with two lines of code:

Workbooks.Open "Test2.xlsx", , True
Application.Run "PLRefreshAllEventHandler"

I put Excel in manual calc mode. When I execute the above code I see Test2.xlsx being opened, and =TR function refreshing the data. If I comment out the last line of code, then Test2.xlsx gets opened with the data that was there at the time the spreadsheet was last saved (i.e. the data does not get refreshed). Long story short, my experience is exactly the expected behavior.

What is different in your case? Can you try replicating the issue using simple test files? And if you're able to replicate the behavior you experienced, can you post the exact replication procedure?

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 >
11 People are following this question.

Related Questions

How do I use User Tags with Adfin X Real Time in Eikon for Excel VBA?

Corporate Action Excel getting wrong data

Why doesn't Application.Run("RtGet","IDN",RIC,FID) work in Eikon for Excel VBA?

What does "EikonExcel_Macro.xla" do in the Excel's VBE?

.Subscribe Method with Cache

  • 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