I've got a WebBrowser object showing a webpage that contains a droplist (so-called choice box). The relevant HTML for the page is:
In VB I need to read the value of whatever is selected by the user, but I've tried so many combinations of reading it and I'm stumped. Here's what I've currently got:
However, this returns "Object variable or With variable not set". Any tips or solutions would be very useful.
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
Code:
<FORM>
<select name="att" id="att">
<option>Page 1</option>
<option>Page 2</option>
</select>
</FORM>
In VB I need to read the value of whatever is selected by the user, but I've tried so many combinations of reading it and I'm stumped. Here's what I've currently got:
Code:
Dim objDoc as HTMLDocument
Set objDoc = WebBrowser1.Document
N$ = objDoc.getElementById("att").getAttribute("value")
However, this returns "Object variable or With variable not set". Any tips or solutions would be very useful.
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments