Missing argument for: <function name>

The following conditions could have caused this error:

  • You did not include a required argument when you called a function. For example:
    Function MyFunction(A As Integer, B As Integer) As Integer  
       ' ...
    End Function
    anInt% = MyFunction%(5)     ' Illegal because MyFunction takes two arguments

    Supply the missing argument in the function call.

  • A comma was not followed by an argument. For example:
    Function MyFunction(A As Integer, B As Integer) As Integer
       ' ...
    End Function
    anInt% = MyFunction(,3)     ' Illegal

    Remove the comma, or specify the argument.