Trigger a macro using Countdown timer

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
User avatar
rinconpaul
Posts: 112
Joined: Wed Dec 03, 2014 10:39 pm

I'm struggling with vba, and need some help. I want to trigger a macro when the countdown timer reaches a specified time. This is the script I have:

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("$V$4").Value = TimeValue("12:00:00") Then
Call Copy_Race
End If
End Sub

It works in a standalone spreadsheet but not in BetAngel. Is it because the cell V4 is dynamic and continually changing? Any suggestions appreciated.
floydiano7
Posts: 9
Joined: Fri Jun 28, 2013 11:11 am

Hmmm...
You can not use Worksheet_Change(ByVal Target As Range)because the values are not inserted manually. You must use Worksheet_Calculate()
markjacks
Posts: 81
Joined: Thu Dec 04, 2014 8:21 pm

That's right. I think this is possible but it will take you time to figure it out but in the end, Worksheet_Calculate() will work.
Post Reply

Return to “Bet Angel for newbies / Getting started”