Moderator: 2020vision
by andrej » Tue Aug 24, 2010 7:13 am
by osknows » Tue Aug 24, 2010 8:56 am
Dim lastrace As String
Dim nextracetrigger as integer
Private Sub Worksheet_Change(ByVal Target As Range)
Dim Balance as double
Dim Profit_Target as double
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
With ThisWorkbook.Sheets(Target.Worksheet.Name)
Balance = .range("ABC1").value ' change ABC1 to whatever range has your balance
Profit_Target = .range("ABC12").value ' change ABC12 to whatever range has your profit target
If Balance >= Profit_Target And nextracetrigger = 0 Then
lastrace = .Range("A1").Value
.Range("Q2").Value = -1
nextracetrigger = 1
'.range("ABC12").value = .range("ABC12").value + X 'option to write new profit target
End If
If lastrace <> .Range("A1").Value Then
nextracetrigger = 0
End If
End With
Application.EnableEvents = True
End Sub
by osknows » Tue Aug 24, 2010 9:56 am
Private Sub Worksheet_change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
With ThisWorkbook.Sheets(Target.Worksheet.Name)
If .Range("AA1") = 1 Then
.Range("AN5:AN35").Value = .Range("AA5:AA35").Value
End If
End With
Application.EnableEvents = True
End Sub
by andrej » Tue Aug 24, 2010 10:08 am
by osknows » Tue Aug 24, 2010 10:47 am
by osknows » Tue Aug 24, 2010 1:04 pm
andrej wrote:sorry, i'm not very good in vba. basicaly I have reduced my problem into this I need to get the value from my E2 into Q12 (originaly q2) at all times as q12 deletes once triggered.
by andrej » Tue Aug 24, 2010 2:46 pm
osknows wrote:andrej wrote:sorry, i'm not very good in vba. basicaly I have reduced my problem into this I need to get the value from my E2 into Q12 (originaly q2) at all times as q12 deletes once triggered.
Q2 or in your case Q12 when positive sets the refresh rate or when negative selects various quick picklist options/bet refreshes.
Whenever a negative value is entered BA clears this cell to avoid continual activation. What is it you want to place in Q2/Q12 exactly?
by osknows » Tue Aug 24, 2010 3:09 pm
Dim lastrace As String
Dim nextracetrigger As Integer
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
With ThisWorkbook.Sheets(Target.Worksheet.Name)
If .Range("e2").Value = -1 And nextracetrigger = 0 Then
lastrace = .Range("A1").Value
.Range("Q2").Value = -1
nextracetrigger = 1
End If
If lastrace <> .Range("A1").Value Then
nextracetrigger = 0
End If
End With
Application.EnableEvents = True
End Sub
by andrej » Tue Aug 24, 2010 4:11 pm
by osknows » Tue Aug 24, 2010 4:16 pm
by andrej » Fri Aug 27, 2010 1:47 pm
by osknows » Fri Aug 27, 2010 3:16 pm
by andrej » Fri Aug 27, 2010 3:23 pm
The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.
Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.
Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.
He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.
We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.