ERROR : Object required

 
 
 
 'ERROR : Object required

Possible Cause

You may be trying to return an object from a function that returns a data value. For VBScript, you can get this error message if you try to use the set keyword to get a return value from a function that returns a data value (because the set keyword creates an object variable).

Suggested Solution

Check the return value of the command, method, event or property again. For VBScript, check to see whether you should be using the set keyword.

Tip

In some cases, you may be expecting a function to return a valid object, but you get this error message. For example, the Model.Sources property returns a DataSourceCollection of all ActionSource objects found on the specified Model. If there are no sources on that model, the property returns the string "Nothing" in VBScript.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License