Moderator: 2020vision
by AndrewP » Mon Sep 02, 2019 8:03 pm
by MollyMoo » Tue Sep 24, 2019 11:45 am
Private Sub Worksheet_Change(ByVal Target as Range)
If Target.Address = "$E$2" And Target.Value = "In Play" Then
Dim LastRow as Long
LastRow = Worksheets("Sheet3").Cells(Rows.Count,1).End(xlup).Offset(1).Row
'Assumes you are copying from "Sheet1". Change if different.
Worksheets("Sheet1").Range("A1:Z40").Copy Worksheets("Sheet3").Cells(LastRow,1)
Application.CutCopyMode = False
End If
End Sub
by AndrewP » Fri Sep 27, 2019 5:12 pm
by MarkT300 » Tue Oct 01, 2019 7:07 pm
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r1, r2 As Range
Dim PasteRow As Long
If Not Intersect(Target, Range("E2")) Is Nothing Then
If Range("AA1").Value = Range("E2").Value Then
'do nothing
Else
Range("AA1") = Range("E2")
If Range("E2") = "In Play" Then
'copy/paste
Set r1 = Sheets("Sheet1").Range("A1:Z40")
PasteRow = Sheets("Sheet3").Cells(Sheets("Sheet3").Rows.Count, "A").End(xlUp).Row
Set r2 = Sheets("Sheet3").Range("A" & PasteRow)
r1.Copy r2
End If
End If
End If
End Sub
by MollyMoo » Fri Oct 04, 2019 6:26 pm
Private Sub Worksheet_Change(ByVal Target as Range)
If Target.Address = "$E$2" Then
If Target.Value = "In Play" Then
Dim LastRow as Long
LastRow = Worksheets("Sheet3").Cells(Rows.Count,1).End(xlup).Offset(1).Row
'Assumes you are copying from "Sheet1". Change if different.
Worksheets("Sheet1").Range("A1:Z40").Copy Worksheets("Sheet3").Cells(LastRow,1)
Application.CutCopyMode = False
End If
End If
End Sub
by AndrewP » Sun Oct 06, 2019 7:12 pm
by Captain Sensible » Mon Oct 07, 2019 11:24 am
by AndrewP » Mon Oct 07, 2019 2:54 pm
by Captain Sensible » Mon Oct 07, 2019 7:45 pm
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim x As Integer, y As Integer
x = Worksheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
y = Worksheets("Sheet3").Cells(Rows.Count, "A").End(xlUp).Row
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
If Worksheets("Sheet1").Range("A1").Value = Worksheets("Sheet1").Range("T1").Value Then GoTo xit
If Worksheets("Sheet1").Range("E2").Value = "In Play" Then
Worksheets("Sheet1").Range("T1").Value = Worksheets("Sheet1").Range("A1").Value
Worksheets("Sheet3").Range("A" & y + 1 & ":Z" & x + y).Value = Worksheets("Sheet1").Range("A1:Z" & x).Value
End If
xit:
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True 'Turn on events again
End Sub
by Captain Sensible » Mon Oct 07, 2019 7:50 pm
Private Sub Worksheet_Change(ByVal Target As Range)
Debug.Print Target.Address
End Sub
by AndrewP » Tue Oct 08, 2019 1:10 am
by Captain Sensible » Tue Oct 08, 2019 4:43 pm
If Target.Columns.Count <> 16 Then Exit Sub
If Target.Columns.Count <> 7 Then Exit Sub
by AndrewP » Thu Oct 10, 2019 4:45 pm
by Captain Sensible » Thu Oct 10, 2019 10:10 pm
by Captain Sensible » Fri Oct 11, 2019 1:19 pm
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim x As Integer, y As Integer
Dim Wb As Workbook
Set Wb = ThisWorkbook
x = Wb.Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
y = Wb.Sheets("Sheet3").Cells(Rows.Count, "A").End(xlUp).Row
If Target.Columns.Count <> 7 Then Exit Sub 'Amend the number to the cells that change with the BSP data
Application.EnableEvents = False 'Turn off events so changes to cell don't retrigger event
Application.Calculation = xlCalculationManual
If Wb.Sheets("Sheet1").Range("A1").Value = Wb.Sheets("Sheet1").Range("T1").Value Then GoTo xit
If Wb.Sheets("Sheet1").Range("F2").Value = "Suspended" Then
Wb.Sheets("Sheet1").Range("T1").Value = Wb.Sheets("Sheet1").Range("A1").Value
Wb.Sheets("Sheet3").Range("A" & y + 1 & ":Z" & x + y).Value = Wb.Sheets("Sheet1").Range("A1:Z" & x).Value
End If
xit:
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True 'Turn on events again
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.