
Moderator: 2020vision
by knot » Sun Dec 07, 2008 9:52 pm
by throwmeadisc » Mon Dec 08, 2008 12:58 pm
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim RunTime As Date
RunTime = ThisWorkbook.Sheets("Sheet1").Range("AA1").Value
On Error Resume Next
Application.OnTime RunTime, "RefreshPickList", , False
ThisWorkbook.Sheets("Sheet1").Range("AA1").Value = ""
End Sub
Private Sub Workbook_Open()
Call SetupPicklistRefresh
End Sub
Sub RefreshPickList()
Dim RunTime As Date
ThisWorkbook.Sheets("Sheet1").Range("Q2").Value = -3
RunTime = Date + 1 + TimeValue("11:30")
Application.OnTime RunTime, "RefreshPickList", , True
ThisWorkbook.Sheets("Sheet1").Range("AA1").Value = RunTime
End Sub
Sub SetupPicklistRefresh()
Dim RunTime As Date
With ThisWorkbook.Sheets("Sheet1").Range("AA1")
If .Value <> "" Then Application.OnTime .Value, "RefreshPickList", , False
End With
RunTime = Date + TimeValue("11:30")
If Now > RunTime Then
RunTime = Date + 1 + TimeValue("11:30")
ThisWorkbook.Sheets("Sheet1").Range("AA1").Value = RunTime
End If
Application.OnTime RunTime, "RefreshPickList", , True
End Sub
by knot » Mon Dec 08, 2008 6:24 pm
by throwmeadisc » Tue Dec 09, 2008 11:50 am
by throwmeadisc » Tue Dec 09, 2008 11:59 am
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim RunTime As Date
RunTime = ThisWorkbook.Sheets("Sheet1").Range("AA1").Value
On Error Resume Next
Application.OnTime RunTime, "RefreshPickList", , False
ThisWorkbook.Sheets("Sheet1").Range("AA1").Value = ""
End Sub
Private Sub Workbook_Open()
Call SetupPicklistRefresh
End Sub
Sub RefreshPickList()
Dim RunTime As Date
ThisWorkbook.Sheets("Sheet1").Range("Q2").Value = -3
RunTime = Date + 1 + TimeValue("11:30")
Application.OnTime RunTime, "RefreshPickList", , True
ThisWorkbook.Sheets("Sheet1").Range("AA1").Value = RunTime
End Sub
Sub SetupPicklistRefresh()
Dim RunTime As Date
With ThisWorkbook.Sheets("Sheet1").Range("AA1")
If .Value <> "" Then Application.OnTime .Value, "RefreshPickList", , False
End With
RunTime = Date + TimeValue("11:30")
If Now > RunTime Then RunTime = Date + 1 + TimeValue("11:30")
ThisWorkbook.Sheets("Sheet1").Range("AA1").Value = RunTime
Application.OnTime RunTime, "RefreshPickList", , True
End Sub
by Steve Voltage » Sun Jan 11, 2009 1:52 pm
by jokerjoe » Sun Jan 11, 2009 6:15 pm
Private Sub Workbook_Open()
Call Tempo_Market
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.OnTime earliesttime:=vartimer_market, procedure:="Tempo_Market", schedule:=False
End Sub
Public vartimer_market As Date
Sub Tempo_Market()
vartimer_market = Date + 1 + TimeSerial(0, 12, 50)
If Date > wsSM.Range("B3").Value Then
wsBA.Range("Q2") = -3
wsSM.Range("B3").Value = Date + Time
Application.OnTime TimeValue(vartimer_market), "Tempo_Market"
Else
Application.OnTime TimeValue(vartimer_market), "Tempo_Market"
End If
End Sub
by throwmeadisc » Mon Jan 12, 2009 12:53 pm
In the VBA editor put this under "ThisWorkBook"
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.