This seems to be a common aim but I cannot find anyone else having the same issue as me. I am looking to record prices from an exchange, the prices feed in from the exchange into an excel document and updates automatically.
I have written the below code to copy and paste from the lookups (simply vlookups) that filter the source data. When this runs it does not copy the new values that are in the look ups it continues to use the original values that it saw on its first loop, duplicating the information on each new line. It seems like it gets stuck on the original data and does not refresh on each iteration of the loop.
Would anyone be able to advise on where I am missing something?
Sub Copying()
Dim lRow As Long
For lRow = 2 To 13000
    ActiveWorkbook.RefreshAll
    Application.CutCopyMode = False
    Sheets("Bet Angel").Calculate
    Sheets("Data Pull").Calculate
    Sheets("Data Pull").Select
    Range("A2:Q2").Select
    Selection.Copy
    Sheets("Data").Select
    Range("A" & lRow).Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
    Application.Wait (Now + TimeValue("0:00:01"))
    Sheets("Data").Select
    Range("A" & lRow).Select
    Application.CutCopyMode = False
Next lRow
End Sub
 
     
    