Default values cannot be supplied for parameters that are not declared 'Optional'

Required arguments must be supplied when the procedure is called, and they do not take default values in the declaration.

Error ID: BC32024

To correct this error

  • Declare the argument to be Optional or remove the default value.

See Also

Concepts

Optional Parameters

Reference

Optional (Visual Basic)