Object Required on VBA IE Automation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BHo15
    New Member
    • Feb 2014
    • 143

    Object Required on VBA IE Automation

    Greetings All.

    Having trouble automating a website. When I try to assign a value to a text box on the page, I get Run-Time Error 424 Object Required.

    Here is my VBA...

    Code:
                .document.getElementById("IO:3b05fe9b1b00ac14a6fdfd9f034bcbd3").Value = strAssessment(i)
                Sleep (250) 'Had to add sleep to give it time to complete each of these tasks
    Here is the HTML for the field I want to get...

    Code:
    <input name="IO:3b05fe9b1b00ac14a6fdfd9f034bcbd3" class="cat_item_option sc-content-pad form-control" id="IO:3b05fe9b1b00ac14a6fdfd9f034bcbd3" aria-required="true" onchange="if (typeof(variableOnChange) == 'function') variableOnChange('IO:3b05fe9b1b00ac14a6fdfd9f034bcbd3')" maxlength="2147483647" value="">
    Any thoughts?

    Thanks!
Working...