Excel URL Check Help

udt123

New Member
Joined
Nov 9, 2010
Messages
15
Hey Guys,

I have been searching for the last 2 days and couldn't find anything so I wanted to see if anybody knew how to go about doing this on the mrexcel forums.

I have a list of URLS in my column A of my excel 2007 workbook and I wanted a macro that can

1)Copy the first URL
2)Paste it into the webbrowser (mozilla or IE)
3)scan the website for the words "product not found"
4)If product is not found, to put an X next to the URL.
5)Repeat until all the URLS in the column are checked

Is this possble? Thanks for the help in advance!
 
Last edited:
For some reason, the web page occasionally needs a little extra time to completely load or else it errors. I added a one second delay and it seems to have cured the problem.

Code:
            [COLOR="Teal"]' Look for text on web page[/COLOR]
            [COLOR="Red"]Application.Wait Now + TimeValue("00:00:01")[/COLOR]
            If InStr(IE.document.Body.innerText, _
               "There were no documents that contained all of the words in your query.") > 0 Then
               
               cell.Offset(, 1).Value = "X"

            End If
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Thank you again for helping me Alpha! I'm really grateful for all the time you spent on helping me. I'll try this out right now. Thanks again!
 
Upvote 0

Forum statistics

Threads
1,223,445
Messages
6,172,177
Members
452,446
Latest member
walkman99

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