alright, I've downloaded Kleinma's code, studied over it, searched the forums, I don't see a way to set a combo box, the code in the codebank shows getting the value it is currently set to, which I had figured out.
Here's the section of the form I want to auto-fill/adjust:
And I get the value using the following:Code:<SELECT name=const_code> <OPTION value=" ">Select Construction Code</OPTION> <OPTION value=1>Proposed Construction</OPTION> <OPTION value=2>Substantial Rehabilitation</OPTION> <OPTION value=3>Under Construction</OPTION> <OPTION value=4 selected>Existing Construction</OPTION> <OPTION value=5>New Construction (Less than 1 Year)</OPTION> </SELECT>
Which doesn't give me the text, just the integer value, but I don't believe I actually need the text for my purposes, just the values anyhow.Code:Me.WebBrowser1.Document.Forms("aac_form").All("const_code").GetAttribute("value")
Here's what I thought would work:
But unlike the working textbox fill ins I have, this doesn't appear to do anything, not even throwing an exception.Code:Me.WebBrowser1.Document.Forms("aac_form").All("const_code").SetAttribute("value",2)
Anyone know how to do this?




Reply With Quote