468,253 Members | 1,302 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,253 developers. It's quick & easy.

Object Required on VBA IE Automation

BHo15
143 128KB
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...

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

Expand|Select|Wrap|Line Numbers
  1. <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!
Dec 28 '20 #1
0 1282

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Dave Hammond | last post: by
2 posts views Thread by RICHARD BROMBERG | last post: by
1 post views Thread by Eric | last post: by
4 posts views Thread by =?Utf-8?B?cGJsYWNrYnVybg==?= | last post: by
1 post views Thread by newbguy7040 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.