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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,397
Members
448,957
Latest member
Hat4Life

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