Moderator: 2020vision
by dixiedean » Tue Jan 08, 2013 12:33 am
by negapo » Tue Jan 08, 2013 9:52 am
Public CurrentMarketID As Long
Private Sub Worksheet_Change(ByVal Target As Range)
If CurrentMarketID <> Me.Cells(2, 1) Then
CurrentMarketID = Me.Cells(2, 1)
MyMacroName
End If
End Sub
by dixiedean » Tue Jan 08, 2013 10:10 pm
negapo wrote:You can check for the marketid to change and then fire the macro whenever it changes like this:
- Code: Select all
Public CurrentMarketID As Long
Private Sub Worksheet_Change(ByVal Target As Range)
If CurrentMarketID <> Me.Cells(2, 1) Then
CurrentMarketID = Me.Cells(2, 1)
MyMacroName
End If
End Sub
Me.Cells(2, 1) is the location of the MarketID in the sheet, i don't know where it is so you have to change it.
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
Application.ScreenUpdating = False
If Target.Address = "$A$5" Then
Dim raceTime As String
raceTime = Target.Value
If raceTime <> "" Then
Worksheets("QUICK RACE VIEW").Activate
For Counter = 1 To 30000
Set curCell = Worksheets("QUICK RACE VIEW").Cells(Counter, 1)
If curCell.Value <> "" Then
Application.DisplayAlerts = False
If InStr(1, curCell.Value, raceTime) > 0 Then
Rows(CStr(curCell.Row) & ":" & CStr(curCell.Row + 6)).copy
Worksheets("MASTER").Range("A11:g18").PasteSpecial xlPasteValues, SkipBlanks:=True
Application.CutCopyMode = False
Application.DisplayAlerts = True
End If
End If
Next Counter
Worksheets("MASTER").Activate
Range("a6").Select
Application.ScreenUpdating = True
End If
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.