There are ways to code web pages so that Web Queries won't pick them
up. For example, I saw one government site that didn't want the data
to be picked up that way. Their solution? Code the tables AFTER the
</html> tag. It appears EXCEL ignores all HTML code after that tag --
so it found no tables on the page.
I use an EXCEL add-in for most of my web interaction. I wrote it
because of difficulties and issues I kept having with web queries. I
don't know if it would work for you or not. It did work for the
person that was trying to access the government site above. That's
because my add-in uses the XMLHTTP method to retrieve the source code
of the page instead of going through the IE object. It then parses
the code to extract the data. If you're interested, the add-in,
documentation on its functions, and samples of its usage (mostly for
stock market data) can be found in the files area of this Yahoo Group:
http://finance.groups.yahoo.com/group/smf_addin/
The add-in is free and open-source. If nothing else, you may be able
to use some of the VBA code for your particular needs. I have run
into websites (mostly ASP) from which I can't get data from, but most
work fine. I don't know if an intranet would be easier?
Come to think of it, if this is your own company's web pages, couldn't
they create an export or download option for you? I would think if
you have a need for the data, someone else probably does as well. I
used to work in IT, and I know I used to try and give people such
options when they had the need.
You may also need to know the HTML parameters used to create your
final report page. That would remove the need to interact with the
web pages to create the report you're ready to download it. I don't
know if your intranet processing would make that easy or difficult.
Another option would be to actually interface with the intranet
process through the IE object, then collect the web page data at the
end of that processing. Not a trivial task, especially if your IT
area can do it for you automatically...