Udostępnij za pośrednictwem


Parameter '<parametername>' in '<methodname>' already has a matching omitted argument

A procedure call supplies an argument by name after omitting the same argument by position; for example:

Public Sub ABC(ByVal X As Byte, Optional ByVal Y As Byte = 0, _
                                Optional ByVal Z As Byte = 0)
' ...
Call ABC(6, , Y:=3)   ' Argument Y omitted by position, supplied by name.

Error ID: BC32021

To correct this error

  • Supply the argument by position, or remove the comma that omits it.

See Also

Concepts

Passing Arguments by Position and by Name