ERROR : 2001-<function_name> - Argument <#> is invalid

 
 
 
'ERROR : 2001-EnumElements - Argument 0 is invalid

Possible Cause

You may have left out the argument entirely or specified an invalid value (for example, a variable to which no value has been assigned).

Suggested Solution

Check the list of parameters and the possible values for the command, method, event or property again.

Check the return value of the command, method, event or property again.

Note

You may get this error in VBScript if you have forgotten to use the set keyword when you created the variable you are using for the problem argument).

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