+ Reply to Thread
Results 1 to 4 of 4

Bloomberg BDH Refresh Via Macro Loop Application.Ontime

  1. #1
    Forum Contributor
    Join Date
    09-23-2008
    Location
    UK
    Posts
    137

    Bloomberg BDH Refresh Via Macro Loop Application.Ontime

    Hi,

    Firstly you don't need to know anything about Bloomberg to answer this query, only that Bloomberg has various functions that take time to update.

    The code Application.Run "RefreshEntireWorkbook" will update these functions but Application.OnTime (Now + TimeValue("00:00:25")), "RunList" is required to allow them time to get the data from the feed. However this only works if the refresh and wait commands are in a seperate function. So in simplified terms it must go like this in vba:

    Please Login or Register  to view this content.
    BUT I want to do this operation within a loop (see my code below). So what I want is a way to call the refresh sub-rountine and then go back to where the call was made with the count variable holding the same value as before. Now it is the Runlist part of Application.OnTime (Now + TimeValue("00:00:25")), "RunList", Count that calls back to the main routine and I have tried to send the Count. This is where I am stuck. Basically I want to know how to use Application.Ontime to send the Count Variable and a GoTo instruction,

    Cheers,

    Martin

    ---------------------------------------------------------
    Please Login or Register  to view this content.
    Last edited by firefly2k8; 12-17-2009 at 01:12 PM. Reason: Illegal behaviour ... Mod: added tags around psuedo-code also

  2. #2
    Forum Contributor
    Join Date
    09-23-2008
    Location
    UK
    Posts
    137

    Re: Bloomberg BDH Refresh Via Macro Loop Application.Ontime

    I have solved the issue with something like the following.

    Please Login or Register  to view this content.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Bloomberg BDH Refresh Via Macro Loop Application.Ontime

    thank you for posting your resolution

  4. #4
    Registered User
    Join Date
    08-06-2014
    Location
    paris
    MS-Off Ver
    2012
    Posts
    1

    Re: Bloomberg BDH Refresh Via Macro Loop Application.Ontime

    I had been working on this (seemingly easy) issue for hours !

    Thanks a lot for posting, you made my day !
    Last edited by ossiam; 08-06-2014 at 08:26 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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