Web Query - Select Table not being captured

CodyMonster

Board Regular
Joined
Sep 28, 2009
Messages
159
Maybe someone can help me with this one..

I'm trying to get the data from this site

http://www.cmegroup.com/clearport/p...scending&SortType=text&FilterOn=1&PageStart=1

When going through the Web Query in Excel and pulling data with the above address. I get the option to pull the data from the products table..the table with the code/name/product group/sub group..etc etc...

But when I launch the query, it doesn't pull the table data..I get everything but the product list.

Can anyone suggest a way to get this data through a query into excel?

Thanks for your help!!!!

Cody
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Probably not the browser but timing out because I am using a mobile broadband connection. Try this long winded approach that is untested. Run Example. The last update time should appear in a message box...

Code:
Sub Example()
    Dim Res As String
    Res = GetLastUpdate
    MsgBox Trim(Replace(Replace(Res, "Last Updated ", ""), "Chicago Time", ""))
End Sub

Function GetLastUpdate(Optional TimeOutSeconds As Double = 10) As String
    Dim ie As New InternetExplorer, doc As HTMLDocument, b As HTMLGenericElement
    Dim TimeOutTime As Date
    
    ie.navigate "http://www.cmegroup.com/clearport/product-slate.html#sortKey=1&sortOrder=ascending&SortType=text&FilterOn=1&PageStart=1"
    Do Until Not ie.Busy And ie.readyState >= READYSTATE_INTERACTIVE: DoEvents: Loop
    
    TimeOutTime = DateAdd("n", TimeOutSeconds, Now)
    Do
        Set doc = ie.document
        For Each b In doc.getElementsByTagName("B")
            If InStr(b.innerText, "Last Updated") Then
                GetLastUpdate = b.innerText
                Exit Do
            End If
        Next
    Loop Until Now > TimeOutTime
    ie.Quit

End Function
 
Upvote 0
Here is a latebound example.

Code:
Sub Example()
    Dim Res As String
    Res = GetLastUpdate(30)
    MsgBox Trim(Replace(Replace(Res, "Last Updated ", ""), "Chicago Time", ""))
End Sub

Function GetLastUpdate(Optional TimeOutSeconds As Double = 10) As String
    Dim ie As Object, doc As Object, b As Object
    Dim TimeOutTime As Date
    
    Set ie = CreateObject("InternetExplorer.Application")
    ie.navigate "http://www.cmegroup.com/clearport/product-slate.html#sortKey=1&sortOrder=ascending&SortType=text&FilterOn=1&PageStart=1"
    Do Until Not ie.Busy And ie.readyState >= 3: DoEvents: Loop
    
    TimeOutTime = DateAdd("n", TimeOutSeconds, Now)
    Do
        Set doc = ie.document
        For Each b In doc.getElementsByTagName("B")
            If InStr(b.innerText, "Last Updated") Then
                GetLastUpdate = b.innerText
                Exit Do
            End If
        Next
    Loop Until Now > TimeOutTime
    ie.Quit

End Function
 
Upvote 0
HELP ME, PLEASE.. =) Tom Schreiner

Tom Schreiner,

Can you help me with this one..

I'm trying to get the data from this site

http://datasuite.cmegroup.com/dataS....cmegroup.com/trading/fx/&selected_tab=fx_tab

maybe you know another link, because this link with real-time info and I want to see this info with changes in my excel, but above's link can't be accepted by excel, I need another link fot this, thank you very much, waiting your reply there, later
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top