First thing that bothers me I will call it "In Play actual start time". I bet you 80% of trigger bettors thought once in their lifetime to make a trigger based on this somehow, either by counting down the actual duration time of the race or I don't know maybe by counting up. So, I think 3 cells indicating pretty much the same aspect of time (B2,C2,D2) and only one flag (E2) don't help much, forcing us to spend time and effort to debugging the dreadful (for me at least, who I don't claim to be VBA genius exactly) trigger events code. Would you please consider to dedicate a little corner e.g C2 or G2 or any adjacent cell for a frozen instance-capture of the "In Play" moment, helping us to re-adjust our code rely on that ?
Second thing is the difficulty I have to locate something in Preferences-Options to keep and remember the cells and the sheets for Excel logging, for those who prefer to log in other but A1 cell and other than the same worksheet which comes as a default the Bet Results. I guess must be somewhere but I can't find it. I tried in the "Multiple sheets quick link" but I failed. Last thing that comes to my mind is the effort I made to print some parts of program's manual. It was quite an adventure to locate it where was hidden and some pages are in Flash format and they are non printable.
If I'm not making terrible mistakes and these things are not really issues would you please consider them in your next version, making it probably a wonderful piece of software ?
Speaking of the devil, - the trigger events - could you please someone, kind enough, enlighten me of what's wrong with this code below ? Thanks in advance. And sorry for my English.
- Code: Select all
Option Explicit
'------------------------( The logged race begins from A15 cell )-----------------------------------------------------------------------------------
Dim currentMarket As String, IPstat As String
Private Sub Worksheet_Change(ByVal Target As Range)
Dim marketChanged As Boolean
If Target.Columns.Count = 16 Then
If [A15] <> currentMarket Then
currentMarket = [A15]
marketChanged = True
Application.EnableEvents = False
SHEET_PREP 'calling another procedure
'---------------- Capturing the moment of "In Play" status an recording it in J7 in sec----------------------------------
If [J7] = "" And [E16] = "In Play" And [F16] = "" Then
[J7] = (Hour(Mid([D16], 2, 10)) * 3600) + (Minute(Mid([D16], 2, 10)) * 60) + Second(Mid([D16], 2, 10))
Else
[J7] = ""
End If
'--------------------------------------------------------------------------------------------------------------------------------------------------------
Application.EnableEvents = True
Else
marketChanged = False
End If
End If
End Sub