Moderator: 2020vision
by Steve Voltage » Wed Aug 12, 2009 5:44 pm
by osknows » Wed Aug 12, 2009 7:05 pm
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If triggerQuickPickListReload Then
triggerQuickPickListReload = False
For Each ws In Worksheets
ws.Range("Q2").Value = -3
Next
triggerFirstMarketSelect = True
Else
If triggerFirstMarketSelect Then
triggerFirstMarketSelect = False
For Each ws In Worksheets
ws.Range("Q2").Value = -5
Next
End If
End If
Application.EnableEvents = True
End If
End Sub
by Steve Voltage » Wed Aug 12, 2009 7:11 pm
osknows wrote:Just copy the exisitng code into each sheet object in the vba editor. Say you have 10 sheets, you need the worksheet_change event in all 10 sheets
If you want to update all sheets based on a change in only one sheet use the code below (I don't think this is what you want though)
- Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If triggerQuickPickListReload Then
triggerQuickPickListReload = False
For Each ws In Worksheets
ws.Range("Q2").Value = -3
Next
triggerFirstMarketSelect = True
Else
If triggerFirstMarketSelect Then
triggerFirstMarketSelect = False
For Each ws In Worksheets
ws.Range("Q2").Value = -5
Next
End If
End If
Application.EnableEvents = True
End If
End Sub
by osknows » Wed Aug 12, 2009 7:20 pm
by osknows » Wed Aug 12, 2009 8:14 pm
by osknows » Wed Aug 12, 2009 8:29 pm
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If triggerQuickPickListReload Then
triggerQuickPickListReload = False
Sh.Range("Q2").Value = -3
triggerFirstMarketSelect = True
Else
If triggerFirstMarketSelect Then
triggerFirstMarketSelect = False
Sh.Range("Q2").Value = -5
End If
End If
Application.EnableEvents = True
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.