I am using a slightly modified version of the Multiple Bets sheet to trade in play. The only changes I have made are to the formula in column Q of the Market sheet to insert “CANCEL-KO” if a flag set in the MyBets sheet returns 1 and to only trigger positions once a market is in play.
I have written some code to insert the word “CANCEL” into column T using the same flag that triggers the CANCEL-KO formula. A worksheet calculate event in the MyBets sheet calls the macro. Both bits of code are below.
The formula and the code work in the sense that they populate columns Q and T but this does not have the effect of actually cancelling the unmatched positions.
Can anyone point out what I am doing wrong?
I am using the latest beta version.
Thanks,
James
- Code: Select all
Private Sub Worksheet_Calculate()
Application.ScreenUpdating = False
If Range("K2") = 1 Then
Cancel
Application.ScreenUpdating = True
End If
End Sub
- Code: Select all
Sub Cancel()
Sheets("Market").Range("T5:T55") = "CANCEL"
End Sub