Hi there,
I would like to use excel VBA to open the Chrome browser and a specific link and then copy all the text on that page to a cell in a worksheet.
The page I want to copy is as below:
http://bet.hkjc.com/racing/getJSON.aspx?type=win&date=2018-09-02&venue=ST&raceno=1
I found the code below that can open the browser but I don't know how to extract the text and send it to the cell (say A1 in Sheet 3)
==================================================================
Sub test544()
Dim chromePath As String
chromePath = """C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"""
Shell (chromePath & "http://bet.hkjc.com/racing/getJSON.aspx?type=qpl&date=2018-09-02&venue=ST&raceno=1")
End Sub
==================================================================
Can anyone help? Thanks
KK
I would like to use excel VBA to open the Chrome browser and a specific link and then copy all the text on that page to a cell in a worksheet.
The page I want to copy is as below:
http://bet.hkjc.com/racing/getJSON.aspx?type=win&date=2018-09-02&venue=ST&raceno=1
I found the code below that can open the browser but I don't know how to extract the text and send it to the cell (say A1 in Sheet 3)
==================================================================
Sub test544()
Dim chromePath As String
chromePath = """C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"""
Shell (chromePath & "http://bet.hkjc.com/racing/getJSON.aspx?type=qpl&date=2018-09-02&venue=ST&raceno=1")
End Sub
==================================================================
Can anyone help? Thanks
KK