'Optional' expected
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

'Optional' expected 

An optional argument in a procedure declaration is followed by a required argument. Every argument following an optional argument must also be optional.

Error ID: BC30202

To correct this error

  1. If the argument is intended to be required, move it to precede the first optional argument in the argument list.

  2. If the argument is intended to be optional, use the Optional keyword.

See Also

© 2016 Microsoft