This will wait 3 seconds. Adjust the time to suit.
'Top of code module
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Sub BloombergFormula()
Dim LastRow As Long, d As Date
LastRow = Cells(Rows.Count, 1).End(xlUp).Row
With Sheets("FullFile")
.Range("P2:P" & LastRow).FormulaR1C1 = "=IF(LEFT(IF(RC[-2]=""Cusip""," & _
"RC[-3],IF(RC[-1]="""","""",BDP(RC[-1],""ID_CUSIP""))),4)=""#N/A"",""""," & _
"IF(RC[-2]=""Cusip"",RC[-3],IF(RC[-1]="""","""",BDP(RC[-1],""ID_CUSIP""))))"
.Range("Q2:Q" & LastRow).FormulaR1C1 = "=IF(LEFT(BDP(RC[-2],""ID_ISIN""),4)=""#N/A"","""",BDP(RC[-2],""ID_ISIN""))"
d = Now + TimeValue("00:00:03"): Do Until d < Now: DoEvents: Sleep 100: Loop
.Range("P2:Q" & LastRow) = .Range("P2:Q" & LastRow).Value
End With
MsgBox "Done"
End Sub
Bookmarks