Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract All URL links on a certain Web Page

Status
Not open for further replies.

gal4y

Technical User
Dec 24, 2001
72
US
Need to build a database of all hyperlinks on certain webpages which contains the web address. Some pages have log-ins so I need to be able to put that type of information before building the list.

I have tried a few code elements but nothing really builds the full array.

Does anyone have code to do this?

Thank you in advance


-Greg
 
I'm kinda guessing what you need here. Without a more detailed description, I'm not sure what you want.
Hope this helps.


Dim IEApp As Object
Dim thestring(100) As String

Set IEApp = CreateObject("InternetExplorer.Application")
thewebsite="IEApp.Navigate (thewebsite)

thelength = IEApp.document.links.length
for i=1 to thelength
thelink(i-1) = IEApp.document.links(i-1)
next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top