470,647 Members | 1,256 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Object Required on VBA IE Automation

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
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?

Dec 28 '20 #1
0 1823

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
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.