+ Reply to Thread
Results 1 to 3 of 3

Waiting for (BB) add-in data to load befor proceding program

  1. #1
    Registered User
    Join Date
    09-07-2008
    Location
    Norway
    Posts
    27

    Waiting for (BB) add-in data to load befor proceding program

    Hi,

    I am building a program that at one point uses Bloomberg add-in functions to load data directly in the sheet. Sometimes it takes a few seconds for the data to load, which is problematic, because the rest of the program won't work properly before all the bloomberg data has been downloaded to the sheet. I use range.formula to enter the add-in functions.

    I am using both the "=bdp" and "=bdh" functions of bloomberg. The "=bdp" will return "#N/A Requesting Data" until the data has been downloaded, and each "=bdh" covers four columns wich are blank until the data arrives.

    I have tried to enter a loop in the program that will check whether blank cells have been filled or whether the "=bdp" cells match the type of the data I am requesting, starting each loop with "Calculate". This does not appear to work. The loop will go on endlessly but I soon as I break the program, the data appears immediately.

    If anyone had any good ideas on this, it would be much appreciated!

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Waiting for (BB) add-in data to load befor proceding program

    Without seeing the code, it seems like you may not have an exit from the loop. Perhaps if you post the code you will get more help.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Registered User
    Join Date
    09-07-2008
    Location
    Norway
    Posts
    27

    Re: Waiting for (BB) add-in data to load befor proceding program

    I actually figured it out. I just used the application.ontime function and that works.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1