Results 1 to 5 of 5

Excel VBA pausing for Bloomberg

Threaded View

  1. #1
    Registered User
    Join Date
    04-29-2014
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Excel VBA pausing for Bloomberg

    Hi,

    I am new to VBA and trying to create a macro where it will begin by inserting today's date into a cell, then pause for roughly 35 seconds while the massive correlation matrix pulls all the correlations of the portfolio in, then takes an output value that is generated in the workbook from the filled correlation matrix (correlation coefficient) and copy's and pastes it in a different cell. Then it repeats this process again using "Today's date - 1" (yesterday's date), waiting 35 seconds again and taking the new output value and copy and pasting it below the previous one.

    I know I am not close but here is what I have for code thus far (which does not work properly). Thank you so much for any help.

    Sub Test()
    
    Range("B73").Select
    ActiveCell.FormulaR1C1 = "=TODAY()-B75"
    
    For i = 1 To 4
    Application.Run "RefreshAllStaticData"
    Application.OnTime Now + TimeValue("00:00:35"), "Test3"
    Range("B75").Value = 0 + i
    Next i
    
    End Sub
    
    Sub Test3()
    Range("C171").Select
    ActiveCell.Formula = "=B76"
    ActiveCell.Copy
    ActiveCell.PasteSpecial Paste:=xlPasteValues
    End Sub
    Last edited by mbush2; 04-30-2014 at 11:30 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel VBA and Bloomberg
    By freidhofr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2013, 10:12 AM
  2. Excel+Bloomberg+vba
    By Vooodu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-04-2011, 04:35 PM
  3. [SOLVED] Pausing in Excel VBA
    By Joey Lichtenstein in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2006, 08:10 AM
  4. [SOLVED] Open an Excel Workbook from either a BAT (or VBS) without pausing.
    By CRayF in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2005, 12:05 AM
  5. [SOLVED] Pausing macro for user Excel input
    By TomD in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-08-2005, 01:05 PM

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