Hi, I'm new to Bet Angel (and VBA!), although I've used Excel a fair bit. I was wondering if there was a way to take a running count of the refreshes of the price feeds to the Excel spreadsheet, particularly during in-play.
I thought it could be done using Sub Worksheet_Change. This seems to work when I make manual changes to cells, but not when the prices update from Betfair.
I'd be very grateful for any tips on how this could be done.
Cheers.
Running count of price refreshes???
Hi Apollo, welcome to the forum. You are correct in that you could use the worksheet_change event to have a running count of refreshes and it could go something like this :apollo wrote: ↑Sun Jul 28, 2019 12:01 amHi, I'm new to Bet Angel (and VBA!), although I've used Excel a fair bit. I was wondering if there was a way to take a running count of the refreshes of the price feeds to the Excel spreadsheet, particularly during in-play.
I thought it could be done using Sub Worksheet_Change. This seems to work when I make manual changes to cells, but not when the prices update from Betfair.
I'd be very grateful for any tips on how this could be done.
Cheers.
Private Sub Worksheet_change(ByVal Target As Range)
If Not Application.Intersect(Range("$C$4"), Range(Target.Address)) _
Is Nothing Then
range("$H$4").value = range("$H$4").value + 1
End If
End sub
Is there any particular reason you need to know the number of price refreshes?
- ShaunWhite
- Posts: 9731
- Joined: Sat Sep 03, 2016 3:42 am