Is this possible? I have a dynamic URL I'm navigating to. I go to 'http://www.URL.com' and the address bar will read 'http://www.URL.com/asDSFjhfdsja4545/login.aspx' from that point on the underlined stays static but everything after the / is dynamic. Can I modify the string to keep everything that is underlined, remove the login.aspx and add to the URL main.aspx to a different variable, still keeping the original variable in case I need to refer to it.
That is what I currently have, it just captures the URL and stores it in the Public variable StoredURL, which I want to modify.Code:Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant) If (pDisp Is WebBrowser1.Application) Then StoredURL = URL Exit Sub End If End Sub




Reply With Quote