Link to home
Start Free TrialLog in
Avatar of Bruj
BrujFlag for United States of America

asked on

How to get a webpage data without navigating to it. VBA

I came across a technique a few years back that allowed me to grab data from a webpage without navigating to that page. I was actually very simple, but I forgot how to did it.
I believe it was just the Excel internet or html libraries, but it may have been one of windows APIs.

I "think" it was something like a "get" command.

I have about 4000 pages I need to verify nightly and would really like to speed things up.

I did this in Widows 7 and probably IE9. I currently run Win 10 with Edge. Have not done much webstuff with Edge.

Thanks!
Bruce
ASKER CERTIFIED SOLUTION
Avatar of Jon von der Heyden
Jon von der Heyden
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bruj

ASKER

Thank you VERY VERY much! Works like a charm and will same me hours of computer running each day!
Now I just need to re-write my parsing functions!
I am really surprised this method is not used more! It is so much cleaner, faster and easier!
I was really floored when I came across it the first time, and was using it on alot of code (but that was a few years back!)
I just have not don't that type of web automation for a long time.

Very complete and was there right at the right time (think it was less than 15 min!)
Cheers!
Bruce
You're most welcome Bruce.  As the saying goes, "there's more than one way to skin a cat".  I only elected to use WinHTTP out of familiarity.  Best of luck!