好的。这是您的第一个链接的解决方案。
我可以稍微整理一下输出,但它会让你开始。
选择活动表并将参考添加到 MS XML 和 MS HTML 库。
参考
代码
Option Explicit
Sub test4()
Dim html As New HTMLDocument, http As New XMLHTTP60
With http
.Open "GET", "https://www.oddschecker.com/tennis/kaitlyn-christian-sabrina-santamaria-v-tatjana-maria-heather-watson/winner", False
.Send
html.body.innerHTML = .ResponseText
End With
Dim allRowOfData As Object
Set allRowOfData = html.getElementsByClassName("at-12 standard-list")(0)
Dim r As Long, c As Long
Dim curHTMLRow As Object
Dim counter As Long
counter = 1
For r = 0 To allRowOfData.Rows.Length - 1
Set curHTMLRow = allRowOfData.Rows(r)
Dim tblCell As HTMLTableCell
For Each tblCell In curHTMLRow.Cells
If Not tblCell.innerText = "1" And Not tblCell.innerText = "2" And Len(tblCell.innerText) > 0 Then
ActiveSheet.Range("A" & counter).Value = Application.WorksheetFunction.Substitute(tblCell.innerText, "/", " over ")
counter = counter + 1
End If
Next tblCell
Next r
End Sub
结果: