Hello everyone.

I have a problem that I wanted to see if it was possible to resolve. I have the following code. I wanted to know if it where possible to login and submit and follow a link and then from that same link follow another link inside of that url?

private sub command2_click()

Dim web1 As WebBrowser

set web1 = CreateObject("InternetExplorer.Application")
web1.Visible = true

web1.Navigate ("http://somewebsite.com")

do Until web1.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop

With web1.Document
.All("Userlogin").Value = "username"
.All("Password").Value = "password"
.Forms(0).submit
End with


End sub

This will only login. I trying to get to load that page along with a link that looks like web2.Document.Links(1).Click

but then after it loads the page, load another page inside of the new url all in the same browser. I hope this isn't confusing.