Microsoft KB Archive/157907

= PRB: Object Required Error when Running VBScript in IE 3.x, 4.0 =

Article ID: 157907

Article Last Modified on 11/17/2003

-

APPLIES TO


 * Microsoft Visual Basic, Scripting Edition 1.0
 * Microsoft Visual Basic, Scripting Edition 2.0
 * Microsoft Visual Basic, Scripting Edition 3.0

-



This article was previously published under Q157907



SYMPTOMS
Using Visual Basic Scripting Edition (VBScript) to reference ActiveX controls in Internet Explorer 3.x or greater could cause an "Object Required" error.



CAUSE
If security is set to HIGH in Internet Explorer 3.x, the security for the current zone is set to MEDIUM or higher in Internet Explorer 4.x , or 5.x, and your controls are not marked safe for scripting, then you will receive the "Object Required" error. This occurs even if the controls have already been installed on your machine.



RESOLUTION
By changing the security setting to a level lower than that indicated in CAUSE for the requisite version in the Security page of the property settings for Internet Explorer, you may be able to resolve your problem. On the Security page, click the Safety Level button to change the setting from HIGH to MEDIUM. Once you have changed the security level, you should get messages indicating that a potential security problem exists. Accept all the warnings, and your script should work.



STATUS
This is by design.

Keywords: kbprb KB157907

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.