Not a sub or function name: <name>
In a statement where the name of a function or sub is expected, you specified a name that is not recognized as a sub or function name. The statement is one of the following:
- A Call statement
- A call without the Call keyword (for example, a statement consisting of a name)
If the sub or function has not been defined before being called from within a procedure, use the Declare statement to forward declare it. You must define a sub or function before calling it at module level.