I have a web browser control on a userform that logs into an account. There are multiple options on a drop down box on the web page, I choose and option and it shows the results on a different page. While on that page I want to go back to the previous page with the drop down box and select a new option all in one click. Here is what i have:

   
    Set submit = Me.uploadbrowser.Document.getElementById("submit")
    On Error GoTo errHandler:
    uploadbrowser.Document.forms(0).Item("type").Value = 3
    submit.Click
    
    Exit Sub

errHandler:
uploadbrowser.goBack
uploadbrowser.Document.forms(0).Item("type").Value = 3
submit.Click
I get an object not defined error. I have also tried the readycomplete state to and no go. Any help would be awesome

thanks
jeremy