Illegal function call
The following conditions could have caused this error:
- You tried to pass a negative subscript to an array.
- You tried to pass an invalid argument to the ACos function, the ASin function, or the ATn2 function.
- You tried to pass an invalid argument to the Asc function. The empty string ("") is an invalid argument.
- You used an invalid string expression with the Val function.
- You tried to pass an invalid argument to the Chr function.
- You tried to use the Date function to set an invalid system date.
- You tried to use the Time function to set an invalid system time.
- You tried to pass an invalid argument to the DateNumber function or the TimeNumber function.
- You tried to pass NULL, EMPTY, the empty string (""), or a number less than 1 or greater than 255 to the Environ function.
- You tried to use a negative record number in the Get statement or the Put statement.
- You tried to pass an invalid start position or an invalid count to the Instr function or the InstrB function.
- You tried to pass an array to the Len function or the LenB function.
- You tried to pass a negative value to the Log function or the Sqr function.
- You tried to pass a negative value or a value greater than 65K as an argument to a function.
- You tried to pass an invalid window style argument (it must be an integer from 1 to 9 inclusive) to the Shell function.
- You tried to pass an invalid comparison argument (it must be 0 or 1) to the StrCompare function.
- You tried to activate a program using the ActivateApp statement, but the program was not found.
- The string specified in the SendKeys statement contained an unmatched parenthesis, an illegal key name, or an illegal repeat count; or the string was too long to be processed.