Moderator: 2020vision
by Shaun » Thu Aug 04, 2011 3:49 pm
by Shaun » Thu Aug 04, 2011 3:55 pm
by Shaun » Thu Aug 04, 2011 4:22 pm
Sub Meetings1()
Sheets("Meetings1").Select
Sheets("Meetings1").Range("A1:H500").Select
Selection.ClearContents
Sheets("Meetings1").Range("W1:W500").Select
Selection.ClearContents
outputtext (formhtml)
Set temp_qt = ThisWorkbook.Sheets("Meetings1").QueryTables.Add(Connection:= _
"URL;http://formguide.cyberhorse.com.au/index.php/Form/view-form.html?formdate=" & _
Format(Sheets("Data").Range("M2").Value, "yyyy-mm-dd") & ThisWorkbook.Path & "\temp.txt" _
, Destination:=ThisWorkbook.Sheets("Meetings1").Range("$A$1"))
With temp_qt
.Name = False
.FieldNames = False
.RowNumbers = False
.FillAdjacentFormulas = False
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlOverwriteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.Refresh BackgroundQuery:=False
End With
Columns("A:A").Select
With Selection
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Sheets("Data").Select
Range("AV1:AV500").Select
Selection.ClearContents
Sheets("Meetings1").Select
Range("A1:A500").Select
Selection.Copy
Sheets("Data").Select
Range("AV1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
ActiveWorkbook.Worksheets("Data").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Data").Sort.SortFields.Add Key:=Range("AV1:AV1162" _
), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Data").Sort
.SetRange Range("AV1:AV1162")
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Sheets("RaceList").Select
Range("K2:L2").Select
End Sub
by osknows » Thu Aug 04, 2011 4:34 pm
Sub Meetings1()
Sheets("Meetings1").Select
Sheets("Meetings1").Range("A1:H500").Select
Selection.ClearContents
Sheets("Meetings1").Range("W1:W500").Select
Selection.ClearContents
formhtml = ExecuteWebRequest("http://formguide.cyberhorse.com.au/index.php/Form/view-form.html?formdate=" & _
Format(Sheets("Data").Range("M2").Value, "yyyy-mm-dd"))
outputtext (formhtml)
Set temp_qt = ThisWorkbook.Sheets("Meetings1").QueryTables.Add(Connection:= _
"URL;" & ThisWorkbook.Path & "\temp.txt" _
, Destination:=ThisWorkbook.Sheets("Meetings1").Range("$A$1"))
With temp_qt
.Name = "test"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlOverwriteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = True
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
Set temp_qt = Nothing
Kill ThisWorkbook.Path & "\temp.txt"
If ThisWorkbook.Connections.Count > 0 Then ThisWorkbook.Connections.Item(ThisWorkbook.Connections.Count).Delete
Columns("A:A").Select
With Selection
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Sheets("Data").Select
Range("AV1:AV500").Select
Selection.ClearContents
Sheets("Meetings1").Select
Range("A1:A500").Select
Selection.Copy
Sheets("Data").Select
Range("AV1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Application.CutCopyMode = False
ActiveWorkbook.Worksheets("Data").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Data").Sort.SortFields.Add Key:=Range("AV1:AV1162" _
), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:=xlSortNormal
With ActiveWorkbook.Worksheets("Data").Sort
.SetRange Range("AV1:AV1162")
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Sheets("RaceList").Select
Range("K2:L2").Select
End Sub
by Shaun » Thu Aug 04, 2011 4:41 pm
by Shaun » Fri Aug 05, 2011 2:14 am
Function GetAddress(HyperlinkCell As Range)
GetAddress = Replace _
(HyperlinkCell.Hyperlinks(1).Address, "mailto:", "")
End Function
by Shaun » Mon Aug 08, 2011 3:08 am
If ThisWorkbook.Connections.Count > 0 Then ThisWorkbook.Connections.Item(ThisWorkbook.Connections.Count).Delete
Dim qt As QueryTable
Dim WSh As Worksheet
For Each WSh In ThisWorkbook.Worksheets
For Each qt In WSh.QueryTables
qt.Delete
Next qt
Next WSh
by osknows » Mon Aug 08, 2011 8:15 am
by Shaun » Mon Aug 08, 2011 10:43 am
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.