I'm having some trouble with my VBA code. I have some real time data linked to Bloomberg and I would like to get a pop-up window every time the value of a cell is higher than a specific threshold. To do that, I need to find a way to constantly run my macro to check if my condition is verified .. but I don't know how to do that .. my current VBA code is:
Private Sub Worksheet_Activate()
Dim i As Long
For i = 2 To 99
If Cells(i, 11).Value > 25000 Then
MsgBox "Last trade on " & Cells(i, 1).Value & " is higher than 25 000"
End If
Next i
End Sub
If you could help me with this code, this would be great ! Thanks in advance