I've been running a macro via the "Worksheet_Change" code set as follows:
- Code: Select all
Public CurrentMarketID As Long
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
'Check current Bank and if it's higher than existing Max Bank, update Max Bank
If Worksheets("Gruss").Range("I2").Value > Worksheets("Gruss").Range("U1").Value Then
Worksheets("Gruss").Range("U1").Value = Worksheets("Gruss").Range("I2").Value
End If
'Check if Market ID changes
If CurrentMarketID <> Me.Cells(3, "N") Then
CurrentMarketID = Me.Cells(3, "N")
' Run GetCard method
GetCard
End If
Application.EnableEvents = True
End Sub
I'd like to look into running "GetCard" on a more frequent basis in the buildup to a race start, e.g. every 5 or 10 seconds instead of only once when a new market is selected.
Any ideas on how I can do it? Not requesting full code or an Excel developer but a pointer in the right direction would be great.
