Moderator: 2020vision
by Steve Voltage » Sun Aug 02, 2015 8:21 am
by Captain Sensible » Sun Aug 02, 2015 1:45 pm
If Range("V5").Value <>"" Then Range("Q2").Value = -1
by Steve Voltage » Mon Aug 03, 2015 9:06 am
by Captain Sensible » Mon Aug 03, 2015 2:08 pm
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub 'If columns changed <> 16 then exit sub
Application.EnableEvents = False 'Turn off events so changes to cell don't retrigger event
Application.Calculation = xlCalculationManual
With Target.Parent
If .Range("V5").Value <> "" Then .Range("Q2").Value = -1
End With
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True 'Turn on events again
End Sub
by Steve Voltage » Mon Aug 03, 2015 7:18 pm
by Steve Voltage » Mon Aug 03, 2015 8:25 pm
by Captain Sensible » Mon Aug 03, 2015 11:55 pm
Private Sub Worksheet_Change(ByVal Target As Range)
Static LastPrice As Variant
If Target.Columns.Count <> 16 Then Exit Sub 'If columns changed <> 16 then exit sub
Application.EnableEvents = False 'Turn off events so changes to cell don't retrigger event
Application.Calculation = xlCalculationManual
With Target.Parent
If LastPrice <> .Range("O5").Value Then
LastPrice = .Range("O5").Value
.Range("Y5").Value = .Range("Y5").Value + 1
End If
If .Range("V5").Value<>"" Then
.Range("Q2").Value = -1
.Range("Y5").Value = ""
LastPrice = 0
End If
End With
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True 'Turn on events again
End Sub
by Steve Voltage » Thu Aug 13, 2015 7:33 am
Captain Sensible wrote:I thought you already had VBA on the sheet, if not use something like the code below, no idea how you populate V5 but be aware if V5 is noot clear it will keep moving markets that's why it's usually best to control all your market moving code with VBA
- Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub 'If columns changed <> 16 then exit sub
Application.EnableEvents = False 'Turn off events so changes to cell don't retrigger event
Application.Calculation = xlCalculationManual
With Target.Parent
If .Range("V5").Value <> "" Then .Range("Q2").Value = -1
End With
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True 'Turn on events again
End Sub
by Steve Voltage » Fri Aug 28, 2015 9:50 pm
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub
If Sheet1.Cells(9, 28) = "0" Then
Sheet1.Cells(2, 17) = "2"
Else
Sheet1.Cells(2, 17) = "-1"
End If
End Sub
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.