Dynamic website as a target for QueryTable

atlquaker

New Member
Joined
Mar 25, 2010
Messages
3
I am trying to create a dynamic QueryTable connection. The site I am using displays a table of data as well as some filters. Everytime you change the filter, the webpage reloads with different data. I need to import these various data tables into Excel. How can I automate this via VBA? I know how to set up a QueryTables via VBA... and I know how to post parameters to a website via the Navigate() function... but I need a something that is a combination of the two... I hope this is clear. If not, below is a written example of what I am trying to do:


1. Submit parameters to website
2. Take response and import data to worksheet
3. Submit another parameter to website
4. Take response and import data to worksheet...
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
A web query may work if the parameters appear in the URL (query string) - it's just a matter of constructing the URL with the required parameters. Otherwise use IE automation and the HTML object library to manipulate the web site and retrieve the data.
 
Upvote 0
John,
Unfortunately the web form only accepts post parameters, so I can't dynamically change the URL. So, what is the best way to get the data out of the page and into Excel? Parse the HTML for the table I need? Luckily, all of the data I need is in a table that has an ID. What is the best way to get a table and put it into Excel?
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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