Web Query No Yellow Arrow

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

crewaustin66

Board Regular
Joined
Jun 11, 2014
Messages
82
I can see the page in Chrome but cannot seem to load the page in Excel Query either. I'm not sure why it would take so long. The query needs to complete before you can write any VBA to pull out the section you need. Sorry I don't have any useful advice at this time.
 
Upvote 0

crewaustin66

Board Regular
Joined
Jun 11, 2014
Messages
82
I guess if I were doing it I would write a macro based on the following to use the internet object to pull the HTML. Then I would write code to parse the data and find the required tag section, pull that, and parse that for my data. It's going to be rough any way you cut it.

Code:
Private Sub btnGetData_Click()
Set ie = CreateObject("InternetExplorer.Application")
ie.Visible = 0

URL = "http://www.eoddata.com/stockquote/NASDAQ/AAPL.htm"
ie.Navigate URL

State = 0
Do Until State = 4
    DoEvents
    State = ie.ReadyState
Loop

TextBox1 = ie.Document.Body.innerHTML
End Sub
 
Upvote 0

RJD87

New Member
Joined
Sep 22, 2014
Messages
2
Nothing happens when I run this macro. I replaced the web address with the one I need. Is there something else I'm missing?
Thanks
 
Last edited by a moderator:
Upvote 0

crewaustin66

Board Regular
Joined
Jun 11, 2014
Messages
82
You need to create a form with a TextBox1 field on it. Stick that code under a button and fire up the form. Try any URL you like.

Code:
TextBox1 = ie.Document.Body.innerHTML   ' All HTML output to this form field
 
Upvote 0

Forum statistics

Threads
1,191,686
Messages
5,988,004
Members
440,125
Latest member
vincentchu2369

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
Top