IE and VBA

av3ng3r85

Board Regular
Joined
Nov 17, 2006
Messages
60
Is there a way to read the text off a webpage using VBA? For example I am using a macro to "sendkeys" (I know not the most efficient method) to Internet Explorer and I want to be able to verify that I am on the correct page before sending the next set of keys. Kind of like error detection/correction.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,329
Office Version
  1. 365
Platform
  1. Windows
Yes there probably is, but it really depends on the site and how the HTML has been written.

Can you post the URL?

By the way you are right about SendKeys - they should be avoided if possible.
 

av3ng3r85

Board Regular
Joined
Nov 17, 2006
Messages
60
Thanks. I thought there might be a generic way. I wasn't after a particular website. I just thought there was some variable that holds the source code and I could search through that for the string I wanted. I'm a novice. :rolleyes: Thanks anyway.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,101
Messages
5,768,101
Members
425,453
Latest member
bince

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