Trying to fill a form out (text boxes) using Excel VBA. The first problem is that the form is not recognising the values.
I tried using the below code but, same problem, it still didn't work the form throws up a custom validation 'required' error
Set inputBox = document.getElementById("company_name")
inputBox.Focus
inputBox.FireEvent ("onchange")
inputBox.Value = somevalue.Value
Inspecting the html, I see that there is a custom onchange function
<input name="company_name" tabIndex="1" id="company_name" spellcheck="false" onselect="ControlSelect(this, event);" onfocus="ControlFocus(this, event);" onblur="ControlBlur(this, event);" onchange="ControlChange(this, event);" oncut="stdControlCut(this, event);" onpaste="stdControlPaste(this, event);" type="text" size="68" maxLength="40" value="company" autocomplete="off" control_owner="PAGE" program_id="CEN100" screen_id="sid0007" page_name="main" control_owner_id="main" defaultvalue="" extendedchars="false" wildcards="false" securitytype="" security="COM_NAME" spellchecker="false" referential="" datatype="" changecase="" paste="true" server_change_enabled="true" valid="undefined" hasChanged="false">
how do I call ControlChange(this, event); from VBA?
I think that it involves the eval function buy not sure how to pass parameters to ControlChange